wok-current view phonon-vlc/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 f7dd6559d610
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="phonon-vlc"
4 VERSION="0.10.2"
5 CATEGORY="libs"
6 SHORT_DESC="VLC backend for libphonon"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/KDE/phonon/"
11 #SOURCE="phonon-backend-vlc"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/KDE/$PACKAGE/archive/v$VERSION.tar.gz"
15 DEPENDS="libQtCore libQtDBus libQtGui libQtXml libvlc phonon"
16 BUILD_DEPENDS="automoc4 cmake libvlc-dev phonon phonon-dev qmake Qt4-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 compile_rules()
25 {
26 mkdir build
27 cd build
28 cmake .. \
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DCMAKE_BUILD_TYPE=Release \
31 -DCMAKE_SKIP_RPATH=ON \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DCMAKE_INSTALL_LIBDIR=lib &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 genpkg_rules()
39 {
40 cp -a $install/* $fs
41 rm -rf $fs/usr/share
42 }