summaryrefslogtreecommitdiff
path: root/user/openal-soft/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-01 20:44:18 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-01 20:44:18 +0000
commita278c3e05013fa3366554af5dee719a0ba90d798 (patch)
tree3e8b407a54ea97bc7fe4a5a2757dde27a6320e37 /user/openal-soft/APKBUILD
parent4c66fd861e536f7b7e2e68a78b748cfeb62026c4 (diff)
downloadpackages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.gz
packages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.bz2
packages-a278c3e05013fa3366554af5dee719a0ba90d798.tar.xz
packages-a278c3e05013fa3366554af5dee719a0ba90d798.zip
user/*: Modernise / fix syntax / deps
Diffstat (limited to 'user/openal-soft/APKBUILD')
-rw-r--r--user/openal-soft/APKBUILD19
1 files changed, 4 insertions, 15 deletions
diff --git a/user/openal-soft/APKBUILD b/user/openal-soft/APKBUILD
index d5d32afe3..3f5f9c29d 100644
--- a/user/openal-soft/APKBUILD
+++ b/user/openal-soft/APKBUILD
@@ -6,6 +6,7 @@ pkgrel=0
pkgdesc="Software implementation of OpenAL API"
url="https://kcat.strangesoft.net/openal.html"
arch="all"
+options="!check" # No test suite.
license="LGPL-2.0+"
depends=""
depends_dev="alsa-lib-dev"
@@ -13,14 +14,8 @@ makedepends="$depends_dev cmake linux-headers pulseaudio-dev"
subpackages="$pkgname-dev"
source="https://kcat.strangesoft.net/openal-releases/${pkgname}-${pkgver}.tar.bz2"
-prepare() {
- default_prepare
- mkdir -p "$builddir"/build
-}
-
build() {
local _cpuext_neon=""
- cd "$builddir"/build
case "$CARCH" in
armhf) _cpuext_neon="-DALSOFT_CPUEXT_NEON=OFF" ;;
esac
@@ -28,18 +23,12 @@ build() {
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
$_cpuext_neon \
- "$builddir"
- make
-}
-
-check() {
- cd "$builddir"/build
- CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+ -Bbuild
+ make -C build
}
package() {
- cd "$builddir"/build
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" -C build install
}
sha512sums="356a3f12bbe284bfac71f4f2a9f83d084083a832012222e73743042ac27812cf051c12b0ddcf53c010ff77e44ae2e9033cea9b9324d316a22a59a154307a64a4 openal-soft-1.19.1.tar.bz2"