blob: b56ab62d3c9f6bb97deffe59d59a3cd60d822cd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
pkgname=mingw-w64-gst-plugins-base
pkgver=1.6.0
pkgrel=1
pkgdesc="GStreamer Multimedia Framework Base 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-base/gst-plugins-base-${pkgver}.tar.xz)
sha256sums=('SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "${srcdir}/gst-plugins-base-${pkgver}"
for _arch in $_architectures; do
mkdir -p "build-${_arch}"
cd "build-${_arch}"
${_arch}-configure \
--with-package-name="GStreamer Base Plugins (Arch Linux)" \
--with-package-origin="http://www.archlinux.org/" \
--disable-examples \
make
cd ..
done
}
package() {
cd "${srcdir}/gst-plugins-base-${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
}
|