aboutsummaryrefslogtreecommitdiffstats
path: root/main/gamin/APKBUILD
blob: b13fe04779d559b16baa2341112c0b8f850bb3fc (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
50
51
52
53
54
55
56
57
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gamin
pkgver=0.1.10
pkgrel=9
pkgdesc="Gamin is a file and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor) system."
url="http://www.gnome.org/~veillard/gamin"
arch="all"
license="GPL"
subpackages="$pkgname-dev py-$pkgname:py"
depends=
makedepends="pkgconfig glib-dev python-dev"
source="http://www.gnome.org/~veillard/$pkgname/sources/$pkgname-$pkgver.tar.gz
	fix-deprecated-const.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	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 \
		--with-threads \
		--disable-debug-api \
		--disable-debug \
		--disable-dnotify \
		--libexecdir=/usr/lib/gamin \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	# some kinde of race in the make install which is not solved with -j || return 1
	export MKDIRPROG="mkdir -p"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/python*/site-packages/*.la \
		"$pkgdir"/usr/lib/*.la || return 1
}

py() {
	pkgdesc="Python bindings for the gamin library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

md5sums="b4ec549e57da470c04edd5ec2876a028  gamin-0.1.10.tar.gz
f679aeb48fe9dd376c8828cc9b6941ab  fix-deprecated-const.patch"