wok-current view gnaughty/receipt @ rev 25573

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