# Maintainer: Natanael Copa pkgname=gstreamer1 pkgver=1.0.8 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 --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-introspection \ --with-package-name="GStreamer (Alpine Linux)" \ --with-package-origin="http://alpinelinux.org/" \ || return 1 make || return 1 } package() { cd "$srcdir"/gstreamer-$pkgver make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la \ "$pkgdir"/usr/lib/*.a \ "$pkgdir"/usr/lib/gstreamer*/*.la \ "$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="fb0c73470e8dd5dab01e5e9e62db9db9 gstreamer-1.0.8.tar.xz" sha256sums="ff70f45509566b88e35986971ace5e89cb6cb232e9ca249f84502abceef1762d gstreamer-1.0.8.tar.xz" sha512sums="17b19383a535564a0e8f5d5792e52dfae359ce1c9f55b09321fbc5c9f5be4c41c1957f70d987a4812ec7d97f2f5cda77339163d928e5b5ff2c334c0bf6c804c3 gstreamer-1.0.8.tar.xz"