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