wok view gnaughty/receipt @ rev 25086

created recipe for sylpheed-lang
author Hans-G?nter Theisgen
date Fri Jun 17 06:42:13 2022 +0100 (2022-06-17)
parents b8224321a8c3
children 7dd01dedad38
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="http://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 }