wok annotate qastools/receipt @ rev 25476
Up foomatic-db-nonfree (20221012)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 13 16:28:13 2022 +0000 (2022-10-13) |
parents | e6b7a2aaf2e1 |
children | 29df00e1e19d |
rev | line source |
---|---|
al@16809 | 1 # SliTaz package receipt. |
al@16809 | 2 |
al@16809 | 3 PACKAGE="qastools" |
al@16809 | 4 VERSION="0.17.2" |
al@16809 | 5 CATEGORY="multimedia" |
al@16809 | 6 SHORT_DESC="QasTools is a collection of desktop applications for the ALSA" |
al@16809 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16809 | 8 LICENSE="GPL3" |
pascal@21252 | 9 WEB_SITE="https://web.archive.org/web/20190106075103/https://xwmw.org/qastools/" |
al@16809 | 10 TARBALL="${PACKAGE}_$VERSION.tar.xz" |
al@16809 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL" |
al@16809 | 12 GENERIC_MENUS="no" |
al@16809 | 13 |
al@16809 | 14 DEPENDS="alsa-lib libQtCore libQtGui libQtNetwork libQtSvg qasmixer" |
al@16809 | 15 BUILD_DEPENDS="cmake Qt4-dev qmake alsa-lib-dev" |
al@16809 | 16 |
pascal@24348 | 17 # What is the latest version available today? |
pascal@24348 | 18 current_version() |
pascal@24348 | 19 { |
pascal@24348 | 20 wget -O - https://sourceforge.net/projects/qastools/files/ 2>/dev/null | \ |
pascal@24348 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 22 sed '/scope="row/!d;s|.*/files/||;s|/.*||;q' |
pascal@24348 | 23 } |
pascal@24348 | 24 |
al@16809 | 25 # Rules to configure and make the package. |
al@16809 | 26 compile_rules() |
al@16809 | 27 { |
al@16809 | 28 mkdir build; cd build |
al@16809 | 29 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
al@16809 | 30 make && |
al@16809 | 31 make DESTDIR=$install install |
al@16809 | 32 } |
al@16809 | 33 |
al@16809 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16809 | 35 genpkg_rules() |
al@16809 | 36 { |
al@16809 | 37 cp -a $install/* $fs |
al@16809 | 38 rm -rf $fs/usr/share/man $fs/usr/share/qastools/COPYING |
al@16809 | 39 |
al@16809 | 40 # separate qasmixer |
al@16809 | 41 for file in $(cat $stuff/qasmixer.files); do |
al@16809 | 42 rm -f $fs$file |
al@16809 | 43 done |
al@16809 | 44 } |