wok view gtk-gnutella/receipt @ rev 25003
updated nspr and nspr-dev (4.25 -> 4.33)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:53:05 2022 +0100 (2022-05-16) |
parents | 070e14e0705d |
children | 6e5c8ce7fb15 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk-gnutella"
4 VERSION="1.1.15"
5 CATEGORY="network"
6 SHORT_DESC="p2p client."
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/gtk-gnutella/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="expat gnutls gtk+ libgcrypt libgpg-error libtasn1 libxml2
15 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor
16 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes
17 xorg-libXinerama xorg-libXrandr xorg-libXrender"
18 BUILD_DEPENDS="glib-dev gtk+-dev libxml2-dev pkg-config xorg-dev
19 zlib-dev"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://sourceforge.net/projects/gtk-gnutella/files/gtk-gnutella/ 2>/dev/null | \
25 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
26 sed '/scope="row/!d;s|.*/gtk-gnutella/||;s|/.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./build.sh \
33 --prefix=/usr \
34 --disable-dbus \
35 --disable-nls &&
36 make $MAKEFLAGS install INSTALL_PREFIX=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin
43 mkdir -p $fs/usr/share/applications
44 mkdir -p $fs/usr/share/pixmaps
45 mkdir -p $fs/usr/share/gtk-gnutella/pixmaps
47 cp -a $install/usr/bin/gtk-gnutella $fs/usr/bin/gtk-gnutella.bin
49 cat > $fs/usr/bin/gtk-gnutella <<EOT
50 #!/bin/sh
51 G_SLICE=always_malloc /usr/bin/gtk-gnutella.bin
52 EOT
53 chmod 755 $fs/usr/bin/gtk-gnutella
55 cp -a $install/usr/share/applications/* $fs/usr/share/applications
56 cp -a $install/usr/share/pixmaps/* $fs/usr/share/pixmaps
57 cp -a $install/usr/share/gtk-gnutella/pixmaps/* \
58 $fs/usr/share/gtk-gnutella/pixmaps
59 }