wok-current annotate xarchiver/receipt @ rev 24906
updated minidlna (1.2.1 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 14:37:52 2022 +0100 (2022-04-09) |
parents | 5ea0ce1cecc0 |
children | 227fb0d8e0ed |
rev | line source |
---|---|
erjo@4156 | 1 # SliTaz package receipt. |
erjo@4156 | 2 |
erjo@4156 | 3 PACKAGE="xarchiver" |
Hans-G?nter@22151 | 4 VERSION="0.5.4.14" |
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@22151 | 17 SUGGESTED="$RECOMMENDED arj bzip2 binutils cpio lha lzop p7zip-full rar xz zip" |
Hans-G?nter@22151 | 18 |
pascal@21710 | 19 DEPENDS="gtk+ $RECOMMENDED" |
pascal@15579 | 20 BUILD_DEPENDS="gtk+-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@22151 | 42 make DESTDIR=$DESTDIR install |
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@22151 | 49 |
Hans-G?nter@22151 | 50 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22151 | 51 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22151 | 52 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@22151 | 53 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@22151 | 54 |
erjo@4713 | 55 rm -rf $fs/usr/share/icons/hicolor/scalable |
al@16771 | 56 |
pascal@22350 | 57 sed -i '/Encoding/d; /Version/d; /Name\[.*\]=Xarchiver/d; /GenericName/d; s|multipart/x-zip;||' \ |
al@16771 | 58 $fs/usr/share/applications/xarchiver.desktop |
al@16774 | 59 |
Hans-G?nter@22151 | 60 mkdir -p $fs/var/www/cgi-bin |
Hans-G?nter@22151 | 61 mkdir -p $fs/usr/share/doc/xarchiver/html |
Hans-G?nter@22151 | 62 |
Hans-G?nter@22151 | 63 cp -a $stuff/xarchiver.cgi $fs/var/www/cgi-bin |
Hans-G?nter@22151 | 64 cp -a $stuff/index.html $fs/usr/share/doc/xarchiver/html |
erjo@4156 | 65 } |