summaryrefslogtreecommitdiff
path: root/user/gst-plugins-good/APKBUILD
blob: 31f9963e50646fd5b1094d0fb3adf59563514c75 (plain) (blame)
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
50
51
52
53
54
55
56
57
58
59
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gst-plugins-good
pkgver=1.16.0
pkgrel=0
pkgdesc="GStreamer multimedia framework - Free, well-written plugins"
url="https://gstreamer.freedesktop.org/modules/gst-plugins-good.html"
arch="all"
license="LGPL-2.1+"
depends=""
checkdepends="orc-compiler cmd:which"
makedepends="gst-plugins-base-dev gstreamer-dev gobject-introspection-dev
	orc-dev libgudev-dev v4l-utils-dev libx11-dev cairo-dev flac-dev
	gdk-pixbuf-dev gtk+3.0-dev libjpeg-turbo-dev lame-dev libdv-dev
	libpng-dev mpg123-dev pulseaudio-dev libraw1394-dev libiec61883-dev
	libavc1394-dev libsoup-dev speex-dev taglib-dev wavpack-dev zlib-dev
	bzip2-dev"
subpackages="$pkgname-doc $pkgname-gtk $pkgname-lang"
ldpath="/usr/lib/gstreamer-1.0"
source="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.xz
	endian-test.patch
	"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-introspection \
		--with-package-origin="${DISTRO_NAME:-Adélie Linux} (${DISTRO_URL:-https://www.adelielinux.org/})"
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

gtk() {
	pkgdesc="$pkgdesc (Gtk+ 3 integration)"
	install_if="$pkgname=$pkgver-r$pkgrel gtk+3.0"
	mkdir -p "$subpkgdir"/usr/lib/gstreamer-1.0
	mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgdkpixbuf.so \
		"$subpkgdir"/usr/lib/gstreamer-1.0/
	mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgtk.so \
		"$subpkgdir"/usr/lib/gstreamer-1.0/
}

sha512sums="01ae64426d62500c12eb98073fcdf4bbbb7df69b5d30a153491a6e3bcd9bfa6e6a3a7fdedd7b7293ce9405e909a4a57c691f293a58525f21281136deac7c0a7c  gst-plugins-good-1.16.0.tar.xz
1cecf260cfeb19675a819f9858426aaed3b9627ed90b8facb6cb12dfc0b265232639b1888d7cc03edb87025e3eddab6e3606f16b5f7ca261a6b1c39b0dbdc6f7  endian-test.patch"