wok annotate xarchive/receipt @ rev 25461

foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 09:44:06 2022 +0000 (24 months ago)
parents 7dd01dedad38
children 29df00e1e19d
rev   line source
erjo@484 1 # SliTaz package receipt.
erjo@484 2
erjo@484 3 PACKAGE="xarchive"
erjo@484 4 VERSION="0.2.8-6"
pascal@741 5 CATEGORY="x-window"
erjo@484 6 SHORT_DESC="A GTK+ front-end for command line archiving tools."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
erjo@484 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4954 10 SUGGESTED="zip rar unace arj lha p7zip lzop linux-squashfs cromfs cabextract \
pascal@19677 11 xz lrzip"
pascal@25460 12 WEB_SITE="https://xarchive.sourceforge.net/"
pascal@688 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
erjo@484 14
pascal@15579 15 DEPENDS="gtk+ xorg-libXdamage"
pascal@15579 16 BUILD_DEPENDS="pkg-config gtk+ gtk+-dev"
pascal@15579 17
pascal@25461 18 # What is the latest version available today?
pascal@24105 19 current_version()
pascal@24105 20 {
pascal@24105 21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
pascal@24105 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24105 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
pascal@24105 24 }
pascal@24105 25
erjo@484 26 # Rules to configure and make the package.ls sr
erjo@484 27 compile_rules()
erjo@484 28 {
erjo@484 29 cd $src
erjo@484 30 # patch tar-wrap for busybox tar option
pascal@1462 31 [ -f done.slitaz-xarchive-wrappers-0.2.8-6.patch ] || \
pascal@8974 32 patch -p1 -i $stuff/slitaz-xarchive-wrappers-0.2.8-6.patch
pascal@1462 33 touch done.slitaz-xarchive-wrappers-0.2.8-6.patch
erjo@484 34
erjo@484 35 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1462 36 --mandir=/usr/share/man $CONFIGURE_ARGS &&
erjo@484 37
pascal@1462 38 make &&
pascal@15579 39 make DESTDIR=$DESTDIR install
erjo@484 40 }
erjo@484 41
erjo@484 42 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@484 43 genpkg_rules()
erjo@484 44 {
erjo@484 45 mkdir -p $fs/usr/lib/xarchive/wrappers
pascal@15579 46 cp -a $install/usr/bin $fs/usr
pascal@15579 47 sed -i 's|#!\s*/bin/bash|#!/bin/sh|' $install/usr/lib/xarchive/wrappers/*
pascal@8974 48 cp $stuff/slitaz-wrap.sh $fs/usr/lib/xarchive/wrappers
erjo@484 49 }