wok-current view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="xarchiver"
4 VERSION="0.5.4.14"
5 CATEGORY="x-window"
6 SHORT_DESC="A GTK+ lightweight archive manager."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/ib/xarchiver"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 # binutils for ar; busybox also contains gzip & cpio; rar is get-rar;
15 # gtar is absent
16 RECOMMENDED="gzip lzma unzip"
17 SUGGESTED="$RECOMMENDED arj bzip2 binutils cpio lha lzop p7zip-full rar xz zip"
19 DEPENDS="gtk+ $RECOMMENDED"
20 BUILD_DEPENDS="gtk+-dev"
22 GENERIC_PIXMAPS="no"
23 GENERIC_MENUS="no"
25 current_version()
26 {
27 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
28 sed '/archive.*tags\//!d;s|.*/\(.*\).zip.*|\1|;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 # patch -p0 < $stuff/xarchiver-0.5.3-icons.diff
36 ./configure \
37 --prefix=/usr \
38 --disable-doc \
39 --libexecdir=/usr/lib \
40 $CONFIGURE_ARGS &&
41 make &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/lib $fs/usr
52 cp -a $install/usr/share/applications $fs/usr/share
53 cp -a $install/usr/share/icons $fs/usr/share
55 rm -rf $fs/usr/share/icons/hicolor/scalable
57 sed -i '/Encoding/d; /Version/d; /Name\[.*\]=Xarchiver/d; /GenericName/d; s|multipart/x-zip;||' \
58 $fs/usr/share/applications/xarchiver.desktop
60 mkdir -p $fs/var/www/cgi-bin
61 mkdir -p $fs/usr/share/doc/xarchiver/html
63 cp -a $stuff/xarchiver.cgi $fs/var/www/cgi-bin
64 cp -a $stuff/index.html $fs/usr/share/doc/xarchiver/html
65 }