summaryrefslogtreecommitdiffstats
path: root/main/gamin/APKBUILD
blob: 5e790d6057e53d78a0f3034f2788f2c67e648c1b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gamin
pkgver=0.1.10
pkgrel=7
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"

build ()
{
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--disable-static \
		--with-threads \
		--disable-debug-api \
		--disable-debug \
		--disable-dnotify \
		--libexecdir=/usr/lib/gamin
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	# 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"