# Maintainer: Natanael Copa pkgname=gstreamer1 pkgver=1.6.3 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="b4cdeb2b9cb20dd6ac022a4f417eae0d gstreamer-1.6.3.tar.xz" sha256sums="22f9568d67b87cf700a111f381144bd37cb93790a77e4e331db01fe854a37f24 gstreamer-1.6.3.tar.xz" sha512sums="f5ab2461469d489da956a0dd4e785e8f0a130b104a37289f7821be6e8f8e5049864888fdcf3a7d281406bf48b40737afa75347c22e6bec05ff2cf525734b51f7 gstreamer-1.6.3.tar.xz"