wok annotate geoip/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | cf4ce87b7beb |
children | bd7510903310 |
rev | line source |
---|---|
slaxemulator@7300 | 1 # SliTaz package receipt. |
slaxemulator@7300 | 2 |
slaxemulator@7300 | 3 PACKAGE="geoip" |
slaxemulator@11163 | 4 VERSION="1.4.8" |
slaxemulator@7300 | 5 CATEGORY="network" |
slaxemulator@7300 | 6 SHORT_DESC="Non-DNS IP-to-country resolver C library & utils." |
slaxemulator@7300 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15589 | 8 LICENSE="LGPL2.1" |
slaxemulator@7300 | 9 SOURCE="GeoIP" |
slaxemulator@7300 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
slaxemulator@7300 | 11 WEB_SITE="http://www.maxmind.com/app/c" |
slaxemulator@7300 | 12 WGET_URL="http://www.maxmind.com/download/geoip/api/c/$TARBALL" |
slaxemulator@7300 | 13 |
slaxemulator@11163 | 14 DEPENDS="zlib" |
pascal@15617 | 15 BUILD_DEPENDS="zlib-dev automake autoconf libtool" |
slaxemulator@11163 | 16 |
pascal@24445 | 17 # What is the latest version available today? |
pascal@24445 | 18 current_version() |
pascal@24445 | 19 { |
pascal@24445 | 20 wget -O - https://github.com/maxmind/geoip-api-c/releases 2>/dev/null | \ |
pascal@24445 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24445 | 22 } |
pascal@24445 | 23 |
slaxemulator@7300 | 24 # Rules to configure and make the package. |
slaxemulator@7300 | 25 compile_rules() |
slaxemulator@7300 | 26 { |
slaxemulator@11163 | 27 autoreconf -i |
slaxemulator@7300 | 28 ./configure \ |
slaxemulator@7300 | 29 --prefix=/usr \ |
slaxemulator@7300 | 30 --infodir=/usr/share/info \ |
slaxemulator@7300 | 31 --mandir=/usr/share/man \ |
slaxemulator@7300 | 32 --sysconfdir=/etc/geoip \ |
pascal@17721 | 33 $CONFIGURE_ARGS 2>&1 | \ |
pascal@17721 | 34 sed 's|missing: No such|missing: no such|' |
slaxemulator@11163 | 35 make && make DESTDIR=$DESTDIR install |
slaxemulator@7300 | 36 } |
slaxemulator@7300 | 37 |
slaxemulator@7300 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7300 | 39 genpkg_rules() |
slaxemulator@7300 | 40 { |
slaxemulator@7300 | 41 mkdir -p $fs/usr/lib $fs/usr/share |
slaxemulator@11163 | 42 cp -a $install/usr/bin $fs/usr |
slaxemulator@11163 | 43 cp -a $install/etc $fs |
slaxemulator@11163 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11163 | 45 cp -a $install/usr/share/GeoIP $fs/usr/share |
slaxemulator@7300 | 46 } |
slaxemulator@7300 | 47 |