aboutsummaryrefslogtreecommitdiffstats
path: root/community/phonon-backend-gstreamer/APKBUILD
blob: 834b7ceeaf3dbc07b0a1838b07117951e8630868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"