diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-09 10:44:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-09 10:44:56 +0000 |
commit | 75207f7e247844cf29459fb6155c93e48c4ac0fb (patch) | |
tree | 231c25120b93cbce7fab8b0472aaf756bba49a6e /community/openal-soft/APKBUILD | |
parent | 3288f8e35ecfa6c09cdf9ba6c303c09b93cc6b10 (diff) | |
download | aports-75207f7e247844cf29459fb6155c93e48c4ac0fb.tar.bz2 aports-75207f7e247844cf29459fb6155c93e48c4ac0fb.tar.xz |
community/openal-soft: move from main
Diffstat (limited to 'community/openal-soft/APKBUILD')
-rw-r--r-- | community/openal-soft/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/openal-soft/APKBUILD b/community/openal-soft/APKBUILD new file mode 100644 index 0000000000..fdf1df20e3 --- /dev/null +++ b/community/openal-soft/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: +pkgname=openal-soft +pkgver=1.12.854 +pkgrel=0 +pkgdesc="software implementation of OpenAL API" +url="http://kcat.strangesoft.net/openal.html" +arch="all" +license="LGPL" +depends="alsa-lib" +depends_dev="alsa-lib-dev" +makedepends="$depends_dev cmake" +install="" +subpackages="$pkgname-dev" +source="http://kcat.strangesoft.net/openal-releases/${pkgname}-${pkgver}.tar.bz2 + openal-fegetround.patch" + +_srcdir="${srcdir}/${pkgname}-${pkgver}" +_builddir="${srcdir}/build" +prepare() { + local i + + cd "$_srcdir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + mkdir -p "$_builddir" +} + +build() { + cd "$_builddir" + cmake -DCMAKE_INSTALL_PREFIX="/usr" "$_srcdir" || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="fbf36451fdebd6466edbdc0ee7db9603 openal-soft-1.12.854.tar.bz2 +e75032e44d64f268358d9755ff5200c6 openal-fegetround.patch" |