wok-current annotate geoip/receipt @ rev 16426

xautomation: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 18 08:00:01 2014 +0000 (2014-04-18)
parents fd22b033a84a
children cf4ce87b7beb
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
slaxemulator@7300 17 # Rules to configure and make the package.
slaxemulator@7300 18 compile_rules()
slaxemulator@7300 19 {
slaxemulator@7300 20 cd $src
slaxemulator@11163 21 autoreconf -i
slaxemulator@7300 22 ./configure \
slaxemulator@7300 23 --prefix=/usr \
slaxemulator@7300 24 --infodir=/usr/share/info \
slaxemulator@7300 25 --mandir=/usr/share/man \
slaxemulator@7300 26 --sysconfdir=/etc/geoip \
slaxemulator@7300 27 $CONFIGURE_ARGS &&
slaxemulator@11163 28 make && make DESTDIR=$DESTDIR install
slaxemulator@7300 29 }
slaxemulator@7300 30
slaxemulator@7300 31 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7300 32 genpkg_rules()
slaxemulator@7300 33 {
slaxemulator@7300 34 mkdir -p $fs/usr/lib $fs/usr/share
slaxemulator@11163 35 cp -a $install/usr/bin $fs/usr
slaxemulator@11163 36 cp -a $install/etc $fs
slaxemulator@11163 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@11163 38 cp -a $install/usr/share/GeoIP $fs/usr/share
slaxemulator@7300 39 }
slaxemulator@7300 40