wok view gtk-gnutella/receipt @ rev 25122

Up apache (2.4.54)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 28 08:48:09 2022 +0000 (2022-06-28)
parents 932cd974e081
children ad0bc3efbf37
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.gz"
12 WGET_URL="https://github.com/gtk-gnutella/gtk-gnutella/archive/v$VERSION.tar.gz"
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 - ${WGET_URL%/arch*}/tags 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # binutils 2.34+ support
32 sed -e 's|bfd_get_|bfd_|g' \
33 -e 's|bfd_error(|bfd_get_error(|' \
34 -e 's|bfd_file_flags|bfd_get_file_flags|' \
35 -e 's|bfd_section_vma(b, |bfd_section_vma(|' \
36 -e 's|bfd_symbol_info(bc->handle, |bfd_symbol_info(|' \
37 -e 's|bfd_section_flags(b, |bfd_section_flags(|' \
38 -i src/lib/bfd_util.c
40 ./build.sh \
41 --prefix=/usr \
42 --disable-dbus \
43 --disable-nls &&
44 make $MAKEFLAGS install INSTALL_PREFIX=$DESTDIR
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/bin
51 mkdir -p $fs/usr/share/applications
52 mkdir -p $fs/usr/share/pixmaps
53 mkdir -p $fs/usr/share/gtk-gnutella/pixmaps
55 cp -a $install/usr/bin/gtk-gnutella $fs/usr/bin/gtk-gnutella.bin
57 cat > $fs/usr/bin/gtk-gnutella <<EOT
58 #!/bin/sh
59 G_SLICE=always_malloc /usr/bin/gtk-gnutella.bin
60 EOT
61 chmod 755 $fs/usr/bin/gtk-gnutella
63 cp -a $install/usr/share/applications/* $fs/usr/share/applications
64 cp -a $install/usr/share/pixmaps/* $fs/usr/share/pixmaps
65 cp -a $install/usr/share/gtk-gnutella/pixmaps/* \
66 $fs/usr/share/gtk-gnutella/pixmaps
67 }