wok-current annotate gamin/receipt @ rev 24902
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 09 09:39:20 2022 +0000 (2022-04-09) |
parents | 86790a278e70 |
children | 00e3b45c063b |
rev | line source |
---|---|
pankso@255 | 1 # SliTaz package receipt. |
pankso@255 | 2 |
pankso@255 | 3 PACKAGE="gamin" |
pankso@3344 | 4 VERSION="0.1.10" |
pankso@271 | 5 CATEGORY="system-tools" |
pankso@255 | 6 SHORT_DESC="File and directory monitoring system." |
pankso@255 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
pankso@255 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24902 | 10 WEB_SITE="https://gitlab.gnome.org/Archive/gamin" |
pascal@20421 | 11 WGET_URL="https://www.gnome.org/~veillard/gamin/sources/$TARBALL" |
pankso@16276 | 12 |
pankso@16276 | 13 #HOST_ARCH="i486 arm" |
pankso@16276 | 14 CROSS_BUGS="error: cannot run test program while cross compiling" |
pankso@10388 | 15 |
pankso@10388 | 16 DEPENDS="glib" |
pankso@10388 | 17 BUILD_DEPENDS="pkg-config glib glib-dev gtk+-dev" |
pankso@255 | 18 |
pascal@24902 | 19 # What is the latest version available today? |
pascal@24902 | 20 current_version() |
pascal@24902 | 21 { |
pascal@24902 | 22 wget -O - https://gitlab.gnome.org/Archive/gamin/-/tags?sort=updated_desc 2>/dev/null | \ |
pascal@24902 | 23 sed '/item-title/!d;s|.*GAMIN_||;s|<.*||;s|_|.|g;q' |
pascal@24902 | 24 } |
pascal@24902 | 25 |
pankso@255 | 26 # Rules to configure and make the package. |
pankso@255 | 27 compile_rules() |
pankso@255 | 28 { |
gokhlayeh@11492 | 29 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions. |
gokhlayeh@11492 | 30 # (gamin v0.1.10) |
gokhlayeh@11492 | 31 cd server |
gokhlayeh@11492 | 32 sed 's/^G_CONST_RETURN/const/'\ |
gokhlayeh@11492 | 33 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \ |
gokhlayeh@11492 | 34 || return 1 |
gokhlayeh@11492 | 35 cd .. |
pankso@16276 | 36 |
pankso@16276 | 37 export have_abstract_sockets=yes |
pankso@16276 | 38 export ac_cv_have_abstract_sockets=yes |
pankso@16276 | 39 |
pankso@255 | 40 ./configure \ |
pankso@255 | 41 --prefix=/usr \ |
pankso@255 | 42 --sysconfdir=/etc \ |
pankso@255 | 43 --libexecdir=/usr/lib/gamin \ |
pankso@16276 | 44 $CONFIGURE_ARGS && |
pankso@3368 | 45 make && |
pankso@10388 | 46 mkdir -p $DESTDIR/usr/include && |
pankso@10388 | 47 make -j1 DESTDIR=$DESTDIR install |
pankso@255 | 48 } |
pankso@255 | 49 |
pankso@255 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@255 | 51 genpkg_rules() |
pankso@255 | 52 { |
pankso@255 | 53 mkdir -p $fs/usr/lib |
pascal@15004 | 54 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15004 | 55 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
pankso@2833 | 56 strip -s $fs/usr/lib/$PACKAGE/* |
pankso@255 | 57 } |