wok-6.x view gamin/receipt @ rev 20450
youtube-dl: rename source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 21 13:01:08 2018 +0200 (2018-09-21) |
parents | 8139105f9285 |
children | a6b997a82f39 |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.gnome.org/~veillard/gamin/"
11 WGET_URL="https://www.gnome.org/~veillard/gamin/sources/$TARBALL"
13 #HOST_ARCH="i486 arm"
14 CROSS_BUGS="error: cannot run test program while cross compiling"
16 DEPENDS="glib"
17 BUILD_DEPENDS="pkg-config glib glib-dev gtk+-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions.
23 # (gamin v0.1.10)
24 cd server
25 sed 's/^G_CONST_RETURN/const/'\
26 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \
27 || return 1
28 cd ..
30 export have_abstract_sockets=yes
31 export ac_cv_have_abstract_sockets=yes
33 ./configure \
34 --prefix=/usr \
35 --sysconfdir=/etc \
36 --libexecdir=/usr/lib/gamin \
37 $CONFIGURE_ARGS &&
38 make &&
39 mkdir -p $DESTDIR/usr/include &&
40 make -j1 DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
49 strip -s $fs/usr/lib/$PACKAGE/*
50 }