wok annotate libproxy/receipt @ rev 25509

sgmixer: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 13:14:45 2023 +0000 (21 months ago)
parents 83b97236db32
children 7364ffdaaa60
rev   line source
jozee@2728 1 # SliTaz package receipt.
jozee@2728 2
jozee@2728 3 PACKAGE="libproxy"
slaxemulator@6379 4 VERSION="0.4.6"
jozee@2728 5 CATEGORY="multimedia"
jozee@2728 6 SHORT_DESC="library to provide automatic proxy configuration management"
jozee@2728 7 MAINTAINER="jozee@slitaz.org"
pascal@14716 8 LICENSE="LGPL2.1"
pascal@2860 9 SUGGESTED="python icu libcurl libxslt webkit-r"
jozee@2728 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20674 11 WEB_SITE="https://libproxy.github.io/libproxy/"
pascal@24978 12 WGET_URL="https://github.com/libproxy/libproxy/archive/refs/tags/$TARBALL"
jozee@2728 13
pascal@14716 14 DEPENDS="glib gtk+ gcc-lib-base xorg-libXmu libwebkit libtasn1"
pascal@14740 15 BUILD_DEPENDS="glibc-base cmake libwebkit-dev python python-dev perl \
pascal@14740 16 gtk+-dev pkg-config"
pascal@14716 17
pascal@24427 18 # What is the latest version available today?
pascal@24427 19 current_version()
pascal@24427 20 {
pascal@24427 21 wget -O - https://github.com/libproxy/libproxy/releases 2>/dev/null | \
pascal@24427 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24427 23 }
pascal@24427 24
jozee@2728 25 # Rules to configure and make the package.
jozee@2728 26 compile_rules()
jozee@2728 27 {
jozee@2728 28 cd $src
pascal@6052 29 ./autogen.sh
pascal@6052 30 sed -i -e 's/WITH_MOZJS:BOOL=ON/WITH_MOZJS:BOOL=OFF/' \
pascal@6052 31 -e 's|/usr/local|/usr|' CMakeCache.txt
pascal@6052 32 ./autogen.sh &&
pascal@2845 33 make &&
pascal@14716 34 make DESTDIR=$DESTDIR install
jozee@2728 35 }
jozee@2728 36
jozee@2728 37 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2728 38 genpkg_rules()
jozee@2728 39 {
pankso@4316 40 mkdir -p $fs/usr/lib
pascal@14716 41 cp -a $install/usr/bin $fs/usr
pascal@14716 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@14716 43 #cp -a $install/usr/lib/python* $fs/usr/lib
jozee@2728 44 }