wok view geoip/receipt @ rev 25641
Fix miss gogglesmm app icon for menu
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Jan 07 10:30:54 2024 +0100 (10 months ago) |
parents | 429ffdcd660a |
children |
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="https://www.maxmind.com/"
12 WGET_URL="https://src.fedoraproject.org/lookaside/pkgs/GeoIP/$TARBALL/05b7300435336231b556df5ab36f326d/$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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }