Untitled diff

Created Diff never expires
5 removals
37 lines
3 additions
35 lines
pkgname=mingw-w64-freealut
pkgname=mingw-w64-freealut
_realname=freealut
_realname=freealut
pkgver=1.1.0
pkgver=1.1.0
pkgrel=1
pkgrel=1
pkgdesc="Cross-platform 3D audio library, software implementation (mingw-w64)"
pkgdesc="Cross-platform 3D audio library, software implementation (mingw-w64)"
arch=(any)
arch=(any)
url="https://github.com/kcat/openal-soft"
url="https://github.com/kcat/openal-soft"
license=('LGPL')
license=('LGPL')
depends=('mingw-w64-crt')
depends=('mingw-w64-crt' 'mingw-w64-openal')
makedepends=('mingw-w64-cmake' 'git')
makedepends=('mingw-w64-cmake' 'git')
options=(!strip !buildflags staticlibs)
options=(!strip !buildflags staticlibs)
_commit=6761218e51699f46bf25c377e65b3e9ea5e434b9 # tags/openal-soft-1.19.1
_commit=6761218e51699f46bf25c377e65b3e9ea5e434b9 # tags/openal-soft-1.19.1
_md5sums=e089b28a0267faabdb6c079ee173664a
_md5sums=e089b28a0267faabdb6c079ee173664a
source=("http://pkgs.fedoraproject.org/repo/pkgs/freealut/${_realname}-${pkgver}.tar.gz/${_md5sums}/${_realname}-${pkgver}.tar.gz")
source=("http://pkgs.fedoraproject.org/repo/pkgs/freealut/${_realname}-${pkgver}.tar.gz/${_md5sums}/${_realname}-${pkgver}.tar.gz")
sha256sums=('60d1ea8779471bb851b89b49ce44eecb78e46265be1a6e9320a28b100c8df44f')
sha256sums=('60d1ea8779471bb851b89b49ce44eecb78e46265be1a6e9320a28b100c8df44f')


_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"


build() {
build() {
cd "$srcdir/${_realname}-$pkgver/"
cd "$srcdir/${_realname}-$pkgver/"
sed -i 's/openal openal32/openal openal32 OpenAL32/' CMakeLists.txt
for _arch in ${_architectures}; do
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake ..
${_arch}-cmake ..
make
make
popd
popd
done
done
}
}


package() {
package() {
for _arch in ${_architectures}; do
for _arch in ${_architectures}; do
cd "${srcdir}/foo-$pkgver/build-${_arch}"
cd "${srcdir}/${_realname}-$pkgver/build-${_arch}"
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" install
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
done
}
}