wok-current annotate phonon-backend-gstreamer/receipt @ rev 25491
Up foomatic-db-nonfree (20221116)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 17 12:13:24 2022 +0000 (2022-11-17) |
parents | b569b85b0fb9 |
children |
rev | line source |
---|---|
psychomaniak@19568 | 1 # SliTaz package receipt. |
psychomaniak@19568 | 2 |
psychomaniak@19568 | 3 PACKAGE="phonon-backend-gstreamer" |
psychomaniak@19568 | 4 VERSION="4.7.2" |
psychomaniak@19568 | 5 CATEGORY="multimedia" |
psychomaniak@19568 | 6 LICENSE="LGPL2.1" |
psychomaniak@19568 | 7 SHORT_DESC="gstreamer lib for phonon" |
psychomaniak@19568 | 8 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@19568 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@24308 | 10 WEB_SITE="https://github.com/KDE/phonon" |
pascal@24972 | 11 WGET_URL="https://download.kde.org/stable/phonon/$PACKAGE/$VERSION/src/$TARBALL" |
psychomaniak@19568 | 12 |
psychomaniak@19568 | 13 DEPENDS="phonon gst-plugins-base gst-plugins-good gst-ffmpeg" |
psychomaniak@19568 | 14 BUILD_DEPENDS="phonon phonon-dev cmake qmake automoc4 Qt4-dev \ |
psychomaniak@19568 | 15 gst-plugins-base gst-plugins-base-dev" |
psychomaniak@19568 | 16 |
psychomaniak@19568 | 17 PROVIDE="qt4-phonon" |
psychomaniak@19568 | 18 |
pascal@24308 | 19 # What is the latest version available today? |
pascal@24308 | 20 current_version() |
pascal@24308 | 21 { |
pascal@24308 | 22 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 24 } |
pascal@24308 | 25 |
psychomaniak@19568 | 26 compile_rules() |
psychomaniak@19568 | 27 { |
psychomaniak@19568 | 28 mkdir build; cd build |
psychomaniak@19568 | 29 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \ |
psychomaniak@19568 | 30 -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON \ |
psychomaniak@19568 | 31 -DCMAKE_INSTALL_LIBDIR=lib \ |
psychomaniak@19568 | 32 -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON .. && |
psychomaniak@19568 | 33 make && make DESTDIR=$DESTDIR install |
psychomaniak@19568 | 34 } |
psychomaniak@19568 | 35 genpkg_rules() |
psychomaniak@19568 | 36 { |
psychomaniak@19568 | 37 cp -a $install/* $fs |
psychomaniak@19568 | 38 rm -fr $fs/usr/share/icons |
psychomaniak@19568 | 39 mkdir -p $fs/usr/lib/qt/plugins |
psychomaniak@19568 | 40 ln -s /usr/lib/kde4/plugins/phonon_backend $fs/usr/lib/qt/plugins/ |
psychomaniak@19568 | 41 } |