wok-6.x view znotes/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 | 39567aac1197 |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="znotes"
4 VERSION="0.4.5"
5 CATEGORY="office"
6 SHORT_DESC="zNotes is lightweigh crossplatform application for notes management"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 #WEB_SITE="http://qt-apps.org/content/show.php/zNotes?content=113117"
10 #WEB_SITE="http://znotes.sourceforge.net/"
11 WEB_SITE="https://github.com/proton/zNotes"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/proton/zNotes/archive/$VERSION.tar.gz"
15 DEPENDS="libQtGui libQtXml"
16 BUILD_DEPENDS="Qt4-dev qmake wget"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 lrelease znotes.pro
28 qmake
29 make
30 make INSTALL_ROOT=$install install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 }