wok view geoip/receipt @ rev 24653

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