summaryrefslogtreecommitdiffstats
path: root/main/libnotify/APKBUILD
blob: 1832dd16c1a06edd04df6bcc5bb652883af99100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnotify
pkgver=0.7.6
pkgrel=0
pkgdesc="Desktop notification library"
url="http://library.gnome.org/devel/notification-spec/"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="gdk-pixbuf-dev glib-dev dbus-dev"
makedepends="$depends_dev gtk+3.0-dev autoconf automake"
source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
	skip-tests.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
        local i
        cd "$_builddir"
        for i in $source; do
                case $i in
                *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
                esac
        done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete
}
md5sums="a4997019d08f46f3bf57b78e6f795a59  libnotify-0.7.6.tar.xz
3b1827cf68f5bc2342486926a492eebf  skip-tests.patch"
sha256sums="0ef61ca400d30e28217979bfa0e73a7406b19c32dd76150654ec5b2bdf47d837  libnotify-0.7.6.tar.xz
0b8fcd6fcb3c5127dfa0e6ca83b6dc10f4c30aa782d7fae6c26870d2f175ff9a  skip-tests.patch"
sha512sums="5d656ee7ee5caeb95aec4adb973795dc72fc620cd36b9fe3d4f910951945bd5df70ee1c422cd6aca9c38a9ba2760562e479fc8fb9269449924a5b24d762d03df  libnotify-0.7.6.tar.xz
3fd0c6d1eeadfea71ea4d45ef45eb6a51075c4687640234c7bad2829880679766a1885dc8aef73bdf2b24a004e250f0c2a67bf285ca6bb545f6d085768a2f373  skip-tests.patch"