wok-6.x view kqoauth/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 | 9820f9ae38d5 |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="kqoauth"
4 VERSION="0.98"
5 CATEGORY="development"
6 SHORT_DESC="kQOAuth is a OAuth 1.0 library written for Qt in C++"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/kypeli/kQOAuth"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
13 DEPENDS="libQtGui libQtNetwork libssl"
14 BUILD_DEPENDS="qmake Qt4-dev openssl-dev"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 qmake && make && make INSTALL_ROOT=$install install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $install/usr/lib/*.so* $fs/usr/lib
33 }