wok view xarchive/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (2 months ago) |
parents | 29df00e1e19d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xarchive"
4 VERSION="0.2.8-6"
5 CATEGORY="x-window"
6 SHORT_DESC="A GTK+ front-end for command line archiving tools."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 SUGGESTED="zip rar unace arj lha p7zip lzop linux-squashfs cromfs cabextract \
11 xz lrzip"
12 WEB_SITE="https://xarchive.sourceforge.net/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="gtk+ xorg-libXdamage"
16 BUILD_DEPENDS="pkg-config gtk+ gtk+-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-[a-z-]*\\(.*\\).tar.*|\\1|;s|-i.*||;q"
24 }
26 # Rules to configure and make the package.ls sr
27 compile_rules()
28 {
29 cd $src
30 # patch tar-wrap for busybox tar option
31 [ -f done.slitaz-xarchive-wrappers-0.2.8-6.patch ] || \
32 patch -p1 -i $stuff/slitaz-xarchive-wrappers-0.2.8-6.patch
33 touch done.slitaz-xarchive-wrappers-0.2.8-6.patch
35 ./configure --prefix=/usr --infodir=/usr/share/info \
36 --mandir=/usr/share/man $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib/xarchive/wrappers
46 cp -a $install/usr/bin $fs/usr
47 sed -i 's|#!\s*/bin/bash|#!/bin/sh|' $install/usr/lib/xarchive/wrappers/*
48 cp $stuff/slitaz-wrap.sh $fs/usr/lib/xarchive/wrappers
49 }