wok-6.x view qlcplus/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 | 12acee0a9787 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="qlcplus"
4 VERSION="4.12.1"
5 CATEGORY="electronics"
6 SHORT_DESC="Q Light Controller Plus."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="Apache"
9 WEB_SITE="https://www.qlcplus.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/mcallegari/$PACKAGE/archive/QLC+_$VERSION.tar.gz"
14 DEPENDS="alsa-lib libftdi libQtGui libQtNetwork libQtScript ola"
15 BUILD_DEPENDS="alsa-lib-dev libftdi-dev libusb-dev ola-dev qmake Qt4-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/QLC+_\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 qmake &&
27 make &&
28 make INSTALL_ROOT=$install install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/* $fs
35 }