diff options
Diffstat (limited to 'community')
-rw-r--r-- | community/phonon-backend-gstreamer/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/phonon-backend-gstreamer/APKBUILD b/community/phonon-backend-gstreamer/APKBUILD new file mode 100644 index 0000000000..834b7ceeaf --- /dev/null +++ b/community/phonon-backend-gstreamer/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=phonon-backend-gstreamer +pkgver=4.8.2 +pkgrel=1 +pkgdesc="phonon gstreamer backend for Qt4" +url="http://phonon.kde.org/" +arch="all" +license="LGPL" +depends="" +depends_dev="gstreamer1-dev gst-plugins-base1-dev gstreamer1-dev phonon-dev" +makedepends="$depends_dev cmake automoc4" +install="" +subpackages="" +source="http://download.kde.org/stable/phonon/phonon-backend-gstreamer/$pkgver/src/phonon-backend-gstreamer-$pkgver.tar.xz" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + mkdir -p "$_builddir"/build + cd "$_builddir"/build + cmake "$_builddir" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS $(pkgconf --cflags gstreamer-1.0)" \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir"/build + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="ce441035dc5a00ffaac9a64518ab5c62 phonon-backend-gstreamer-4.8.2.tar.xz" +sha256sums="20e0f71f2beb4f859db8385079a13aef5473863ee6f27aad7b065aa7bfe931e0 phonon-backend-gstreamer-4.8.2.tar.xz" +sha512sums="a18534b89d424bb2cc9f8a7f63a794d9711d895ad1db6cd5f4bd8748ea38310ffeacd916d16443986f89d3097e108aaf5631eaba6dd37e76a7360d5f1d02ecea phonon-backend-gstreamer-4.8.2.tar.xz" |