wok annotate gtk-gnutella/receipt @ rev 25509

sgmixer: update wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 13:14:45 2023 +0000 (20 months ago)
parents ad0bc3efbf37
children 5db546345599
rev   line source
allan316@1365 1 # SliTaz package receipt.
allan316@1365 2
allan316@1365 3 PACKAGE="gtk-gnutella"
Hans-G?nter@22898 4 VERSION="1.1.15"
pascal@1423 5 CATEGORY="network"
Hans-G?nter@22898 6 SHORT_DESC="p2p client."
allan316@1365 7 MAINTAINER="allan316@gmail.com"
pascal@15215 8 LICENSE="GPL2"
pascal@25509 9 WEB_SITE="https://sourceforge.net/projects/gtk-gnutella/"
Hans-G?nter@22898 10
pascal@25036 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25036 12 WGET_URL="https://github.com/gtk-gnutella/gtk-gnutella/archive/v$VERSION.tar.gz"
pascal@15215 13
Hans-G?nter@22898 14 DEPENDS="expat gnutls gtk+ libgcrypt libgpg-error libtasn1 libxml2
Hans-G?nter@22898 15 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor
Hans-G?nter@22898 16 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes
Hans-G?nter@22898 17 xorg-libXinerama xorg-libXrandr xorg-libXrender"
Hans-G?nter@22898 18 BUILD_DEPENDS="glib-dev gtk+-dev libxml2-dev pkg-config xorg-dev
Hans-G?nter@22898 19 zlib-dev"
allan316@1365 20
pascal@24403 21 # What is the latest version available today?
pascal@24403 22 current_version()
pascal@24403 23 {
pascal@25036 24 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@25036 25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24403 26 }
pascal@24403 27
allan316@1365 28 # Rules to configure and make the package.
allan316@1365 29 compile_rules()
allan316@1365 30 {
pascal@25036 31 # binutils 2.34+ support
pascal@25036 32 sed -e 's|bfd_get_|bfd_|g' \
pascal@25036 33 -e 's|bfd_error(|bfd_get_error(|' \
pascal@25036 34 -e 's|bfd_file_flags|bfd_get_file_flags|' \
pascal@25036 35 -e 's|bfd_section_vma(b, |bfd_section_vma(|' \
pascal@25036 36 -e 's|bfd_symbol_info(bc->handle, |bfd_symbol_info(|' \
pascal@25036 37 -e 's|bfd_section_flags(b, |bfd_section_flags(|' \
pascal@25036 38 -i src/lib/bfd_util.c
pascal@25036 39
Hans-G?nter@22898 40 ./build.sh \
Hans-G?nter@22898 41 --prefix=/usr \
Hans-G?nter@22898 42 --disable-dbus \
Hans-G?nter@22898 43 --disable-nls &&
pascal@15215 44 make $MAKEFLAGS install INSTALL_PREFIX=$DESTDIR
allan316@1365 45 }
allan316@1365 46
allan316@1365 47 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@1365 48 genpkg_rules()
allan316@1365 49 {
allan316@1365 50 mkdir -p $fs/usr/bin
allan316@1365 51 mkdir -p $fs/usr/share/applications
allan316@1365 52 mkdir -p $fs/usr/share/pixmaps
allan316@1365 53 mkdir -p $fs/usr/share/gtk-gnutella/pixmaps
Hans-G?nter@22898 54
Hans-G?nter@22898 55 cp -a $install/usr/bin/gtk-gnutella $fs/usr/bin/gtk-gnutella.bin
Hans-G?nter@22898 56
pascal@22818 57 cat > $fs/usr/bin/gtk-gnutella <<EOT
pascal@22818 58 #!/bin/sh
pascal@22818 59 G_SLICE=always_malloc /usr/bin/gtk-gnutella.bin
pascal@22818 60 EOT
pascal@22818 61 chmod 755 $fs/usr/bin/gtk-gnutella
Hans-G?nter@22898 62
Hans-G?nter@22898 63 cp -a $install/usr/share/applications/* $fs/usr/share/applications
Hans-G?nter@22898 64 cp -a $install/usr/share/pixmaps/* $fs/usr/share/pixmaps
Hans-G?nter@22898 65 cp -a $install/usr/share/gtk-gnutella/pixmaps/* \
Hans-G?nter@22898 66 $fs/usr/share/gtk-gnutella/pixmaps
allan316@1365 67 }