diff options
author | xantares | 2015-07-21 20:03:53 +0200 |
---|---|---|
committer | xantares | 2015-07-21 20:03:53 +0200 |
commit | dd98e496aa1876a6a0e145c6e6f9615af9b0abfb (patch) | |
tree | 9eb54b74a479f2ce291edaf4a3aa34aa439f3fee | |
download | aur-dd98e496aa1876a6a0e145c6e6f9615af9b0abfb.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..40911428b467 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-libvorbis + pkgdesc = Vorbis codec library (mingw-w64) + pkgver = 1.3.4 + pkgrel = 3 + url = http://xiph.org + arch = any + license = custom + makedepends = mingw-w64-gcc + makedepends = mingw-w64-binutils + makedepends = mingw-w64-pkg-config + depends = mingw-w64-libogg + depends = mingw-w64-crt + options = !strip + options = !buildflags + options = staticlibs + source = http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz + md5sums = 8851c593a52d1ef9c526d95174873852 + +pkgname = mingw-w64-libvorbis + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8162b3e2de3d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: naelstrof <naelstrof@gmail.com> +pkgname=mingw-w64-libvorbis +pkgver=1.3.4 +pkgrel=3 +pkgdesc="Vorbis codec library (mingw-w64)" +arch=(any) +url="http://xiph.org" +license=('custom') +depends=('mingw-w64-libogg' 'mingw-w64-crt') +makedepends=('mingw-w64-gcc' 'mingw-w64-binutils' 'mingw-w64-pkg-config') +options=(!strip !buildflags staticlibs) +source=(http://downloads.xiph.org/releases/vorbis/libvorbis-${pkgver}.tar.gz) +md5sums=('8851c593a52d1ef9c526d95174873852') +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + unset LDFLAGS + #-march=i686 optimizes too much, strip it out + for _arch in ${_architectures}; do + mkdir -p "${srcdir}/libvorbis-${pkgver}-build-${_arch}" + cd "${srcdir}/libvorbis-${pkgver}-build-${_arch}" + CFLAGS=${CFLAGS/-march=$CARCH} "${srcdir}"/libvorbis-${pkgver}/configure --enable-static --enable-shared --prefix=/usr/${_arch} --host=${_arch} + make + done +} + +package() { + for _arch in ${_architectures}; do + cd "${srcdir}"/libvorbis-${pkgver}-build-${_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 +} |