wok-current annotate xarchive/receipt @ rev 25431
qt5: update wget_url with archive.org
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 19 06:34:23 2022 +0000 (2022-08-19) |
parents | 8b8fae260ab7 |
children | 7dd01dedad38 |
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" |
erjo@484 | 12 WEB_SITE="http://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@24105 | 18 current_version() |
pascal@24105 | 19 { |
pascal@24105 | 20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24105 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24105 | 22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q" |
pascal@24105 | 23 } |
pascal@24105 | 24 |
erjo@484 | 25 # Rules to configure and make the package.ls sr |
erjo@484 | 26 compile_rules() |
erjo@484 | 27 { |
erjo@484 | 28 cd $src |
erjo@484 | 29 # patch tar-wrap for busybox tar option |
pascal@1462 | 30 [ -f done.slitaz-xarchive-wrappers-0.2.8-6.patch ] || \ |
pascal@8974 | 31 patch -p1 -i $stuff/slitaz-xarchive-wrappers-0.2.8-6.patch |
pascal@1462 | 32 touch done.slitaz-xarchive-wrappers-0.2.8-6.patch |
erjo@484 | 33 |
erjo@484 | 34 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1462 | 35 --mandir=/usr/share/man $CONFIGURE_ARGS && |
erjo@484 | 36 |
pascal@1462 | 37 make && |
pascal@15579 | 38 make DESTDIR=$DESTDIR install |
erjo@484 | 39 } |
erjo@484 | 40 |
erjo@484 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@484 | 42 genpkg_rules() |
erjo@484 | 43 { |
erjo@484 | 44 mkdir -p $fs/usr/lib/xarchive/wrappers |
pascal@15579 | 45 cp -a $install/usr/bin $fs/usr |
pascal@15579 | 46 sed -i 's|#!\s*/bin/bash|#!/bin/sh|' $install/usr/lib/xarchive/wrappers/* |
pascal@8974 | 47 cp $stuff/slitaz-wrap.sh $fs/usr/lib/xarchive/wrappers |
erjo@484 | 48 } |