wok annotate phonon-vlc/receipt @ rev 24427

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 11:42:56 2022 +0000 (2022-02-12)
parents 5ea0ce1cecc0
children
rev   line source
psychomaniak@18167 1 # SliTaz package receipt.
psychomaniak@18167 2
psychomaniak@18167 3 PACKAGE="phonon-vlc"
Hans-G?nter@21680 4 VERSION="0.10.2"
psychomaniak@18167 5 CATEGORY="libs"
psychomaniak@18167 6 SHORT_DESC="VLC backend for libphonon"
psychomaniak@18167 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@18167 8 LICENSE="LGPL2.1"
pascal@22428 9 WEB_SITE="https://github.com/KDE/phonon/"
psychomaniak@18167 10
Hans-G?nter@21680 11 #SOURCE="phonon-backend-vlc"
Hans-G?nter@21680 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21680 13 WGET_URL="https://github.com/KDE/$PACKAGE/archive/v$VERSION.tar.gz"
Hans-G?nter@21680 14
Hans-G?nter@21680 15 DEPENDS="libQtCore libQtDBus libQtGui libQtXml libvlc phonon"
Hans-G?nter@21680 16 BUILD_DEPENDS="automoc4 cmake libvlc-dev phonon phonon-dev qmake Qt4-dev"
psychomaniak@18167 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24299 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
psychomaniak@18167 24 compile_rules()
psychomaniak@18167 25 {
Hans-G?nter@21680 26 mkdir build
Hans-G?nter@21680 27 cd build
Hans-G?nter@21680 28 cmake .. \
Hans-G?nter@21680 29 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@21680 30 -DCMAKE_BUILD_TYPE=Release \
Hans-G?nter@21680 31 -DCMAKE_SKIP_RPATH=ON \
Hans-G?nter@21680 32 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@21680 33 -DCMAKE_INSTALL_LIBDIR=lib &&
psychomaniak@18167 34 make &&
psychomaniak@18167 35 make DESTDIR=$DESTDIR install
psychomaniak@18167 36 }
psychomaniak@18167 37
psychomaniak@18167 38 genpkg_rules()
psychomaniak@18167 39 {
psychomaniak@18167 40 cp -a $install/* $fs
psychomaniak@18167 41 rm -rf $fs/usr/share
psychomaniak@18167 42 }