wok-current view gamin/receipt @ rev 25574
asterisk: make install-headers inserted
author | Hans-G?nter Theisgen |
---|---|
date | Sat May 13 17:20:22 2023 +0100 (18 months ago) |
parents | a6b997a82f39 |
children |
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://gitlab.gnome.org/Archive/gamin"
11 WGET_URL="https://ftp.gnome.org/pub/GNOME/sources/gamin/${VERSION%.*}/$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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://gitlab.gnome.org/Archive/gamin/-/tags?sort=updated_desc 2>/dev/null | \
23 sed '/item-title/!d;s|.*GAMIN_||;s|<.*||;s|_|.|g;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions.
30 # (gamin v0.1.10)
31 cd server
32 sed 's/^G_CONST_RETURN/const/'\
33 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \
34 || return 1
35 cd ..
37 export have_abstract_sockets=yes
38 export ac_cv_have_abstract_sockets=yes
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc \
43 --libexecdir=/usr/lib/gamin \
44 $CONFIGURE_ARGS &&
45 make &&
46 mkdir -p $DESTDIR/usr/include &&
47 make -j1 DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
56 strip -s $fs/usr/lib/$PACKAGE/*
57 }