SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libproxy"

# SliTaz package receipt.

PACKAGE="libproxy"
VERSION="0.4.6"
CATEGORY="multimedia"
SHORT_DESC="library to provide automatic proxy configuration management"
MAINTAINER="jozee@slitaz.org"
LICENSE="LGPL2.1"
SUGGESTED="python icu libcurl libxslt webkit-r"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://libproxy.github.io/libproxy/"
WGET_URL="https://github.com/libproxy/libproxy/archive/refs/tags/$TARBALL"

DEPENDS="glib gtk+ gcc-lib-base xorg-libXmu libwebkit libtasn1"
BUILD_DEPENDS="glibc-base cmake libwebkit-dev python python-dev perl \
gtk+-dev pkg-config"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/libproxy/libproxy/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./autogen.sh
    sed -i -e 's/WITH_MOZJS:BOOL=ON/WITH_MOZJS:BOOL=OFF/' \
           -e 's|/usr/local|/usr|' CMakeCache.txt
    ./autogen.sh &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    #cp -a $install/usr/lib/python* $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)