wok-current view xarchiver/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (18 months ago) |
parents | ac8ca9758df1 |
children | 3ad63c8fc2f9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xarchiver"
4 VERSION="0.5.4.18"
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 xarchiver-lang xz zip"
19 DEPENDS="gtk+ libxml2 $RECOMMENDED"
20 BUILD_DEPENDS="gtk+-dev libxml2-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 install DESTDIR=$DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share
49 mkdir -p $fs/var/www/cgi-bin
50 mkdir -p $fs/usr/share/doc/xarchiver/html
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib $fs/usr
54 cp -a $install/usr/share/applications $fs/usr/share
55 cp -a $install/usr/share/icons $fs/usr/share
57 rm -rf $fs/usr/share/icons/hicolor/scalable
59 sed -i '/Encoding/d; /Version/d; /Name\[.*\]=Xarchiver/d; /GenericName/d; s|multipart/x-zip;||' \
60 $fs/usr/share/applications/xarchiver.desktop
62 cp -a $stuff/xarchiver.cgi $fs/var/www/cgi-bin
63 cp -a $stuff/index.html $fs/usr/share/doc/xarchiver/html
64 }