wok-current view xarchiver/receipt @ rev 25634
Mass update, new toolchain gcc 8.3.0, glibc 2.28.0
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Jan 14 08:12:37 2024 +0000 (11 months ago) |
parents | 227fb0d8e0ed |
children | 5926178cd6fa |
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/pixmaps
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
56 cp -a $install/usr/share/pixmaps/* $fs/usr/share/pixmaps
58 rm -rf $fs/usr/share/icons/hicolor/scalable
60 sed -i '/Encoding/d; /Version/d; /Name\[.*\]=Xarchiver/d; /GenericName/d; s|multipart/x-zip;||' \
61 $fs/usr/share/applications/xarchiver.desktop
63 cp -a $stuff/xarchiver.cgi $fs/var/www/cgi-bin
64 cp -a $stuff/index.html $fs/usr/share/doc/xarchiver/html
65 }