wok view qupzilla/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 a119d001bdf6
children 0262035dc1e7
line source
1 # SliTaz PACKAGE receipt.
3 PACKAGE="qupzilla"
4 VERSION="1.8.5"
5 CATEGORY="network"
6 SHORT_DESC="QupZilla - QtWebKit browser"
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/QupZilla/qupzilla"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
12 GENERIC_PIXMAPS="no"
13 TAGS="web-browser"
15 DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtScript libQtSql \
16 libQtXml libcrypto xorg-libX11 zlib cacerts xdg-utils libQtWebkit"
17 BUILD_DEPENDS="wget cacerts Qt4-dev qmake openssl-dev xorg-libX11-dev"
18 SUGGESTED="libQtWebkit-video qupzilla-locales"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the PACKAGE.
27 compile_rules()
28 {
29 qmake QupZilla.pro &&
30 make &&
31 make INSTALL_ROOT=$install install
32 }
33 # Rules to gen a SliTaz PACKAGE suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 rm -rf $fs/usr/share/bash-completion
38 for size in 64 128 256; do
39 rm -rf $fs/usr/share/icons/hicolor/${size}x$size
40 done
41 rm -rf $fs/usr/share/pixmaps
42 rm -rf $fs/usr/share/qupzilla/locale
43 }