wok annotate xarchiver/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | ac8ca9758df1 |
children | b7a6dc33051c |
rev | line source |
---|---|
erjo@4156 | 1 # SliTaz package receipt. |
erjo@4156 | 2 |
erjo@4156 | 3 PACKAGE="xarchiver" |
Hans-G?nter@25428 | 4 VERSION="0.5.4.18" |
erjo@4156 | 5 CATEGORY="x-window" |
Hans-G?nter@22151 | 6 SHORT_DESC="A GTK+ lightweight archive manager." |
erjo@4156 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
Hans-G?nter@22151 | 9 WEB_SITE="https://github.com/ib/xarchiver" |
Hans-G?nter@22151 | 10 |
Hans-G?nter@22151 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22151 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
erjo@4156 | 13 |
al@16774 | 14 # binutils for ar; busybox also contains gzip & cpio; rar is get-rar; |
al@16774 | 15 # gtar is absent |
pascal@21710 | 16 RECOMMENDED="gzip lzma unzip" |
Hans-G?nter@25428 | 17 SUGGESTED="$RECOMMENDED arj bzip2 binutils cpio lha lzop p7zip-full rar xarchiver-lang xz zip" |
Hans-G?nter@22151 | 18 |
Hans-G?nter@25428 | 19 DEPENDS="gtk+ libxml2 $RECOMMENDED" |
Hans-G?nter@25428 | 20 BUILD_DEPENDS="gtk+-dev libxml2-dev" |
Hans-G?nter@22151 | 21 |
al@16774 | 22 GENERIC_PIXMAPS="no" |
al@18477 | 23 GENERIC_MENUS="no" |
pascal@15579 | 24 |
pascal@24055 | 25 current_version() |
pascal@24055 | 26 { |
pascal@24299 | 27 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 28 sed '/archive.*tags\//!d;s|.*/\(.*\).zip.*|\1|;q' |
pascal@24055 | 29 } |
pascal@24055 | 30 |
erjo@4156 | 31 # Rules to configure and make the package. |
erjo@4156 | 32 compile_rules() |
erjo@4156 | 33 { |
Hans-G?nter@22151 | 34 # patch -p0 < $stuff/xarchiver-0.5.3-icons.diff |
Hans-G?nter@22151 | 35 |
Hans-G?nter@22151 | 36 ./configure \ |
Hans-G?nter@22151 | 37 --prefix=/usr \ |
Hans-G?nter@22151 | 38 --disable-doc \ |
Hans-G?nter@22151 | 39 --libexecdir=/usr/lib \ |
erjo@4156 | 40 $CONFIGURE_ARGS && |
Hans-G?nter@22151 | 41 make && |
Hans-G?nter@25428 | 42 make install DESTDIR=$DESTDIR |
erjo@4156 | 43 } |
erjo@4156 | 44 |
erjo@4156 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4156 | 46 genpkg_rules() |
erjo@4156 | 47 { |
al@16771 | 48 mkdir -p $fs/usr/share |
Hans-G?nter@25428 | 49 mkdir -p $fs/var/www/cgi-bin |
Hans-G?nter@25428 | 50 mkdir -p $fs/usr/share/doc/xarchiver/html |
Hans-G?nter@22151 | 51 |
Hans-G?nter@22151 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22151 | 53 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22151 | 54 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@22151 | 55 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@22151 | 56 |
Hans-G?nter@25428 | 57 rm -rf $fs/usr/share/icons/hicolor/scalable |
al@16771 | 58 |
pascal@22350 | 59 sed -i '/Encoding/d; /Version/d; /Name\[.*\]=Xarchiver/d; /GenericName/d; s|multipart/x-zip;||' \ |
al@16771 | 60 $fs/usr/share/applications/xarchiver.desktop |
al@16774 | 61 |
Hans-G?nter@25428 | 62 cp -a $stuff/xarchiver.cgi $fs/var/www/cgi-bin |
Hans-G?nter@25428 | 63 cp -a $stuff/index.html $fs/usr/share/doc/xarchiver/html |
erjo@4156 | 64 } |