wok-current view qlcplus/receipt @ rev 24564

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 25 18:06:36 2022 +0000 (2022-02-25)
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 }