wok annotate gnaughty/receipt @ rev 25148
updated privoxy (3.0.28 -> 3.0.33)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 16:30:00 2022 +0100 (2022-06-29) |
parents | b8224321a8c3 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@12985 | 1 # SliTaz package receipt. |
pascal@12985 | 2 |
pascal@12985 | 3 PACKAGE="gnaughty" |
Hans-G?nter@22859 | 4 VERSION="1.2.5" |
pascal@12985 | 5 CATEGORY="utilities" |
pascal@12985 | 6 SHORT_DESC="Gnaughty is an utility to automatically download adult sex content." |
pascal@12985 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@22859 | 9 WEB_SITE="http://gnaughty.sourceforge.net/" |
Hans-G?nter@22859 | 10 |
pascal@12985 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@12985 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15000 | 13 |
Hans-G?nter@22859 | 14 DEPENDS="curl GConf glib gtk+ libglade pcre" |
Hans-G?nter@22859 | 15 BUILD_DEPENDS="curl-dev GConf-dev glib-dev gtk+-dev libglade-dev pcre-dev" |
pascal@12985 | 16 |
pascal@24403 | 17 # What is the latest version available today? |
pascal@24403 | 18 current_version() |
pascal@24403 | 19 { |
pascal@24403 | 20 wget -O - https://sourceforge.net/projects/gnaughty/files/gnaughty-stable/ 2>/dev/null | \ |
pascal@24403 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24403 | 22 sed '/scope="row/!d;s|.*/gnaughty-||;s|/.*||;q' |
pascal@24403 | 23 } |
pascal@24403 | 24 |
pascal@12985 | 25 # Rules to configure and make the package. |
pascal@12985 | 26 compile_rules() |
pascal@12985 | 27 { |
pascal@17670 | 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgthread-2.0" |
Hans-G?nter@22859 | 29 sed -i 's|curl/types|curl/curl|' \ |
Hans-G?nter@22859 | 30 src/http.c |
Hans-G?nter@22859 | 31 sed -i 's/test -z "\$(gladedir)".*/& || true/' \ |
Hans-G?nter@22859 | 32 src/Makefile.in |
Hans-G?nter@22859 | 33 |
Hans-G?nter@22859 | 34 ./configure \ |
Hans-G?nter@22859 | 35 --prefix=/usr && |
Hans-G?nter@22859 | 36 make && |
Hans-G?nter@22859 | 37 make -j 1 install |
pascal@12985 | 38 } |
pascal@12985 | 39 |
pascal@12985 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@12985 | 41 genpkg_rules() |
pascal@12985 | 42 { |
mojo@23625 | 43 mkdir -p $fs/usr |
mojo@23625 | 44 |
Hans-G?nter@22859 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22859 | 46 cp -a $install/usr/share $fs/usr |
pascal@12985 | 47 } |