diff options
author | xantares | 2015-07-21 20:03:45 +0200 |
---|---|---|
committer | xantares | 2015-07-21 20:03:45 +0200 |
commit | 37c35c3dac925663dbe0770fb5a86519e6461c77 (patch) | |
tree | 6ef8811f3c35af94d050e3e419fe558afdd8ccaf | |
download | aur-37c35c3dac925663dbe0770fb5a86519e6461c77.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1cee50a55e46 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mingw-w64-libogg + pkgdesc = Ogg bitstream and framing library (mingw-w64) + pkgver = 1.3.2 + pkgrel = 1 + url = http://xiph.org + arch = any + license = BSD + makedepends = mingw-w64-gcc + makedepends = mingw-w64-binutils + makedepends = mingw-w64-configure + depends = mingw-w64-crt + options = staticlibs + options = !strip + options = !buildflags + source = http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz + md5sums = b72e1a1dbadff3248e4ed62a4177e937 + +pkgname = mingw-w64-libogg + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..017b776ccb9c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: naelstrof <naelstrof@gmail.com> + +# This PKGBUILD is on github: https://github.com/naelstrof/aur-pkgbuilds + +pkgname=mingw-w64-libogg +pkgver=1.3.2 +pkgrel=1 +pkgdesc="Ogg bitstream and framing library (mingw-w64)" +arch=(any) +url="http://xiph.org" +license=('BSD') +makedepends=('mingw-w64-gcc' 'mingw-w64-binutils' 'mingw-w64-configure') +depends=('mingw-w64-crt') +options=('staticlibs' '!strip' '!buildflags') +source=(http://downloads.xiph.org/releases/ogg/libogg-${pkgver}.tar.gz) +md5sums=('b72e1a1dbadff3248e4ed62a4177e937') + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + unset LDFLAGS + for _arch in ${_architectures}; do + mkdir -p ${srcdir}/libogg-${pkgver}/${_arch} + cd ${srcdir}/libogg-${pkgver}/${_arch} + ${_arch}-configure + make + done +} + +package() { + for _arch in ${_architectures}; do + cd ${srcdir}/libogg-${pkgver}/${_arch} + make DESTDIR="$pkgdir" install + rm -r $pkgdir/usr/${_arch}/share/doc + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |