APKBUILD 1.71 KB
Newer Older
1
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-good
3
pkgver=0.10.31
4
pkgrel=2
5
6
pkgdesc="GStreamer Multimedia Framework Good Plugins"
url="http://gstreamer.freedesktop.org/"
7
arch="all"
8
license="LGPL"
9
subpackages="$pkgname-gnome $pkgname-lang"
10
depends=
11
makedepends="gstreamer-dev glib-dev liboil-dev gst-plugins-base-dev
12
13
	libsoup-dev flac-dev libogg-dev taglib-dev jpeg-dev zlib-dev gconf-dev
	wavpack-dev libavc1394-dev libiec61883-dev libshout-dev libdv-dev
14
	orc-dev libxext libsm-dev libice-dev libxv-dev"
15
replaces="gst-plugins-bad"
16
17
18

source="http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.bz2"

19
20
depends_dev="gstreamer-dev gst-plugins-base-dev"

21
22
23
24
25
26
27
28
_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# fix building with gnu make 3.82
	find -name Makefile.in | xargs sed -i -e "s/^        /\t/" || return 1
}

29
build() {
30
	cd "$_builddir"
31
32
33
34
35
36
37
38
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--enable-experimental \
		--with-package-name="GStreamer Good Plugins (Alpine Linux)" \
		--with-package-origin="http://www.alpinelinux.org/" \
		|| return 1
39
40
41
42
	make
}

package() {
43
	cd "$_builddir"
44
45

	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
46
	make DESTDIR="$pkgdir" install || return 1
47
	find "$pkgdir" -name '*.la' -delete
48
}
49
50
51

gnome() {
	depends="gst-plugins-base-gnome"
52
	install="$subpkgname.post-install $subpkgname.pre-deinstall $subpkgname.post-upgrade"
53
	mkdir -p "$subpkgdir"/usr/lib/gstreamer-0.10
54

55
	mv "$pkgdir"/etc "$subpkgdir"/etc
56
57
58
	mv "$pkgdir"/usr/lib/gstreamer-0.10/libgstgconfelements.so "$subpkgdir"/usr/lib/gstreamer-0.10/libgstgconfelements.so
}

59
md5sums="24f98a294a2b521e1b29412bdadae2e6  gst-plugins-good-0.10.31.tar.bz2"