# Maintainer: Natanael Copa pkgname=gstreamer1 pkgver=1.2.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/" \ || 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="4293ca4d8333690d5acdffe3ad354924 gstreamer-1.2.2.tar.xz" sha256sums="b9f12137ab663edc6c37429b38ca7911074b9c2a829267fe855d4e57d916a0b6 gstreamer-1.2.2.tar.xz" sha512sums="ee032d68fbb368741d7e0db60bb0ec10fc1bd831e21cf171634f2f74b373c2c5149a8e98889186eac49954fdd34cf5ca161b7cead13bcc75425b4f3984131d53 gstreamer-1.2.2.tar.xz"