wok-6.x annotate musique/receipt @ rev 25107

Up open-iscsi (2.0.873)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 17:23:49 2022 +0000 (2022-06-22)
parents 544e47246b33
children 519a42308d05
rev   line source
al@16928 1 # SliTaz package receipt.
al@16928 2
al@16928 3 PACKAGE="musique"
pascal@25097 4 COMMIT="c993f23d5343222958c7a6ee684eebef831a7b02" # Oct 11, 2013
al@16928 5 VERSION="${COMMIT:0:7}"
al@16928 6 CATEGORY="multimedia"
al@16928 7 SHORT_DESC="Musique music player"
al@16928 8 MAINTAINER="al.bobylev@gmail.com"
al@16928 9 LICENSE="GPL3"
pascal@20671 10 WEB_SITE="https://flavio.tordini.org/musique"
al@16928 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25097 12 WGET_URL="https://github.com/flaviotordini/musique/commit/$COMMIT.tar.gz"
al@16928 13
al@16928 14 DEPENDS="libQtCore libQtDBus libQtGui libQtNetwork libQtSql libQtXml \
psychomaniak@19584 15 phonon phonon-backend-gstreamer taglib"
psychomaniak@19584 16 BUILD_DEPENDS="wget cacerts Qt4-dev qmake taglib-dev phonon-dev"
al@16928 17
pascal@24540 18 # What is the latest version available today?
pascal@24540 19 current_version()
pascal@24540 20 {
pascal@24540 21 wget -O - https://github.com/flaviotordini/musique/releases 2>/dev/null | \
pascal@24540 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24540 23 }
pascal@24540 24
al@16928 25 # Rules to configure and make the package.
al@16928 26 compile_rules()
al@16928 27 {
al@16928 28 # put default icons to resources (instead of to hicolor icon theme)
al@16928 29 cp -a $stuff/*.png $src/images
al@16928 30 patch -p0 < $stuff/icons.diff
al@16928 31
al@16928 32 mkdir build; cd build
al@16928 33 qmake PREFIX=/usr ../musique.pro &&
al@16928 34 make &&
al@16928 35 make INSTALL_ROOT=$install install
al@16928 36 }
al@16928 37
al@16928 38 # Rules to gen a SliTaz package suitable for Tazpkg.
al@16928 39 genpkg_rules()
al@16928 40 {
al@16928 41 cp -a $install/* $fs
al@16928 42
al@16928 43 # remove big icons
al@16928 44 for size in 64 128 256 512; do
al@16928 45 rm -rf $fs/usr/share/icons/hicolor/${size}x$size
al@16928 46 done
al@16928 47 }