wok-next view gamin/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents a5d7827e08cf
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gamin"
4 VERSION="0.1.10"
5 CATEGORY="system-tools"
6 SHORT_DESC="File and directory monitoring system"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="http://www.gnome.org/~veillard/gamin/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.gnome.org/~veillard/gamin/sources/$TARBALL"
14 CROSS_BUGS="error: cannot run test program while cross compiling"
16 BUILD_DEPENDS="glib-dev gtk2-dev"
17 SPLIT="gamin-dev"
19 compile_rules() {
20 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions.
21 # (gamin v0.1.10)
22 cd server
23 sed 's/^G_CONST_RETURN/const/'\
24 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \
25 || return 1
26 cd ..
28 export have_abstract_sockets=yes
29 export ac_cv_have_abstract_sockets=yes
31 ./configure \
32 --libexecdir=/usr/lib/gamin \
33 $CONFIGURE_ARGS &&
34 fix libtool &&
35 make &&
36 mkdir -p $DESTDIR/usr/include &&
37 make -j1 DESTDIR=$DESTDIR install
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 gamin)
43 copy @std
44 DEPENDS="glib"
45 ;;
46 *-dev)
47 copy @dev
48 ;;
49 esac
50 }