summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicola Murino2017-01-30 13:46:24 +0100
committerNicola Murino2017-01-30 13:46:24 +0100
commit444e010eb5a4157e70f171fe67eb7f5d0e55404a (patch)
tree837e02690cdcc179e99859dd3334f240eb3382e6
downloadaur-444e010eb5a4157e70f171fe67eb7f5d0e55404a.tar.gz
Initial version
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD69
2 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd8cc861ea8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+# Generated by mksrcinfo v8
+# Mon Jan 30 12:46:10 UTC 2017
+pkgbase = mingw-w64-gst-plugins-bad-git
+ pkgdesc = GStreamer Multimedia Framework Bad Plugins (mingw-w64)
+ pkgver = 1.11.1.r42.01c60e664
+ pkgrel = 1
+ url = http://gstreamer.freedesktop.org/
+ arch = any
+ license = LGPL
+ makedepends = git
+ makedepends = mingw-w64-configure
+ makedepends = mingw-w64-openh264
+ makedepends = mingw-w64-nettle
+ makedepends = mingw-w64-opus
+ makedepends = mingw-w64-bzip2
+ makedepends = mingw-w64-libsrtp
+ makedepends = mingw-w64-vo-aacenc
+ makedepends = mingw-w64-libkate
+ makedepends = mingw-w64-librsvg
+ makedepends = mingw-w64-openjpeg2
+ depends = mingw-w64-glib2
+ depends = mingw-w64-libxml2
+ depends = mingw-w64-gstreamer-git
+ depends = mingw-w64-orc
+ provides = mingw-w64-gst-plugins-bad
+ conflicts = mingw-w64-gst-plugins-bad
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ source = gst-plugins-bad::git://anongit.freedesktop.org/gstreamer/gst-plugins-bad
+ sha256sums = SKIP
+
+pkgname = mingw-w64-gst-plugins-bad-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..23ce49766a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: drakkan <nicola.murino at gmail dot com>
+pkgname=mingw-w64-gst-plugins-bad-git
+pkgver=1.11.1.r42.01c60e664
+pkgrel=1
+_gitname=gst-plugins-bad
+pkgdesc="GStreamer Multimedia Framework Bad Plugins (mingw-w64)"
+arch=(any)
+url="http://gstreamer.freedesktop.org/"
+license=('LGPL')
+depends=('mingw-w64-glib2' 'mingw-w64-libxml2' 'mingw-w64-gstreamer-git' 'mingw-w64-orc')
+makedepends=('git' 'mingw-w64-configure' 'mingw-w64-openh264' 'mingw-w64-nettle' 'mingw-w64-opus' 'mingw-w64-bzip2' 'mingw-w64-libsrtp' 'mingw-w64-vo-aacenc' 'mingw-w64-libkate' 'mingw-w64-librsvg' 'mingw-w64-openjpeg2')
+options=('!strip' '!buildflags' 'staticlibs')
+provides=('mingw-w64-gst-plugins-bad')
+conflicts=('mingw-w64-gst-plugins-bad')
+
+source=("$_gitname::git://anongit.freedesktop.org/gstreamer/$_gitname")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+prepare() {
+ cd $_gitname
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+
+build() {
+ cd "${srcdir}/$_gitname"
+ for _arch in $_architectures; do
+ mkdir -p "build-${_arch}"
+ cd "build-${_arch}"
+ ${_arch}-configure \
+ --with-package-name="GStreamer Bad Plugins (Arch Linux)" \
+ --with-package-origin="http://www.archlinux.org/" \
+ --disable-examples \
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+ cd ..
+ done
+}
+
+
+package() {
+ cd "${srcdir}/$_gitname"
+
+ for _arch in ${_architectures}; do
+ cd "build-${_arch}"
+ make DESTDIR="${pkgdir}" install
+
+ rm "$pkgdir"/usr/$_arch/lib/gstreamer-1.0/*.a
+ rm "$pkgdir"/usr/$_arch/lib/gstreamer-1.0/*.la
+ rm -rf "$pkgdir"/usr/${_arch}/share/${aclocal,man,locale}
+
+ find "$pkgdir" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
+ find "$pkgdir" -name '*.dll' -o -name '*.a' -exec ${_arch}-strip -g {} \;
+
+ cd ..
+ done
+}
+
+# vim: ts=2 sw=2 et: