# Maintainer: Natanael Copa pkgname=gstreamer1 pkgver=1.5.2 pkgrel=0 pkgdesc="GStreamer Multimedia Framework" url="http://gstreamer.freedesktop.org/" arch="all" license="LGPL" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-lang" depends= depends_dev="glib-dev libxml2-dev" makedepends="$depends_dev bison flex gobject-introspection-dev" source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.xz " _builddir="$srcdir"/gstreamer-$pkgver prepare() { cd "$_builddir" for i in $source; do case "$i" in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$srcdir"/gstreamer-$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-introspection \ --with-package-name="GStreamer (Alpine Linux)" \ --with-package-origin="http://alpinelinux.org/" \ --disable-fatal-warnings \ --with-ptp-helper-permissions=none \ || return 1 make || return 1 } package() { cd "$srcdir"/gstreamer-$pkgver make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.a "$pkgdir"/usr/lib/gstreamer*/*.a } tools() { pkgdesc="common tools and files for GStreamer streaming media framework" # gst-feedback needs this depends="pkgconfig" mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="20dabb7d084f83691d258248bcb0b28b gstreamer-1.5.2.tar.xz" sha256sums="96c884e30c4aa7d8ecb6136d467544bec9af36c49dc5f351c3d2ddd23d456c97 gstreamer-1.5.2.tar.xz" sha512sums="27b6bd0dc44a41d3ef884109fc1a0eff104b37b2eaba5c6ea907974263aedb5cd138984de393b9144ad504934c9e396e86c94abdf0ea8f9ae9ff0bcd9859bf63 gstreamer-1.5.2.tar.xz"