# Maintainer: Natanael Copa 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 --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"