wok-6.x view fwbuilder/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 3b69560c09e5 |
children | bf28cc07ebf1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="fwbuilder"
4 VERSION="5.3.7"
5 CATEGORY="network"
6 SHORT_DESC="Firewall management GUI."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/fwbuilder"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="libQtCore libQtGui libQtNetwork libxml2 libxslt zlib"
15 BUILD_DEPENDS="autoconf automake file libtool libxslt-dev qmake Qt4-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/Categories=.*/Categories=GNOME;Application;System;/' \
27 src/res/fwbuilder.desktop
29 ./autogen.sh &&
30 ./configure \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make INSTALL_ROOT=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $install/* $fs
43 }