SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libmaxminddb"

# SliTaz package receipt.

PACKAGE="libmaxminddb"
VERSION="1.11.0"
CATEGORY="libs"
TAGS="geoip"
SHORT_DESC="Maxmind GeoIP2 database library."
MAINTAINER="maintainer@slitaz.org"
LICENSE="Apache-2.0"
WEB_SITE="https://github.com/maxmind/libmaxminddb"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/maxmind/$PACKAGE/releases/download/$VERSION/$TARBALL"

DEPENDS="curl"
BUILD_DEPENDS="curl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure        \
        --prefix=/usr    \
        --with-pic    \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
}
6017 packages and 861739 files in cooking database (Sun Sep 21 00:48:01 2025)