diff options
author | Polochon-street | 2015-10-14 23:00:06 +0200 |
---|---|---|
committer | Polochon-street | 2015-10-14 23:00:06 +0200 |
commit | 38728fed2f7d6be539e981c42ac34429d9dbe284 (patch) | |
tree | 3944eb64bca6c87d15cfb726f3da3b38a1ae19a7 | |
download | aur-38728fed2f7d6be539e981c42ac34429d9dbe284.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 51 |
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dbf11f1e68c1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = mingw-w64-gst-plugins-bad + pkgdesc = GStreamer Multimedia Framework Bad Plugins (mingw-w64) + pkgver = 1.6.0 + pkgrel = 1 + url = http://gstreamer.freedesktop.org/ + arch = any + license = LGPL + makedepends = mingw-w64-configure + makedepends = mingw-w64-gstreamer + makedepends = bison + makedepends = flex + makedepends = python2 + depends = mingw-w64-glib2 + depends = mingw-w64-libxml2 + options = !strip + options = !buildflags + options = staticlibs + source = http://gstreamer.freedesktop.org//src/gst-plugins-bad/gst-plugins-bad-1.6.0.tar.xz + sha256sums = SKIP + +pkgname = mingw-w64-gst-plugins-bad + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5f595d725bad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +pkgname=mingw-w64-gst-plugins-bad +pkgver=1.6.0 +pkgrel=1 +pkgdesc="GStreamer Multimedia Framework Bad Plugins (mingw-w64)" +arch=(any) +url="http://gstreamer.freedesktop.org/" +license=('LGPL') +makedepends=('mingw-w64-configure') +depends=('mingw-w64-glib2' 'mingw-w64-libxml2') +options=('!strip' '!buildflags' 'staticlibs') +makedepends=(mingw-w64-configure mingw-w64-gstreamer bison flex python2) + +source=(${url}/src/gst-plugins-bad/gst-plugins-bad-${pkgver}.tar.xz) +sha256sums=('SKIP') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + + +build() { + cd "${srcdir}/gst-plugins-bad-${pkgver}" + 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 \ + + make + cd .. + done +} + + +package() { + cd "${srcdir}/gst-plugins-bad-${pkgver}" + + 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}" + + find "$pkgdir" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \; + find "$pkgdir" -name '*.dll' -o -name '*.a' -exec ${_arch}-strip -g {} \; + + cd .. + done +} |