summaryrefslogtreecommitdiff
path: root/user/freealut
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-12 01:39:54 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-12 01:39:54 +0000
commit5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d (patch)
tree2b8febb001be429260957e56ae975964774f4aeb /user/freealut
parent750ede08c898240f8c8c9e74277ca1580b3f10f3 (diff)
downloadpackages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.tar.gz
packages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.tar.bz2
packages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.tar.xz
packages-5d4e2c0456662aa1f74d1a2c41b1bfb567f56d7d.zip
user/*: Modernise / fix syntax / metadata / deps
Diffstat (limited to 'user/freealut')
-rw-r--r--user/freealut/APKBUILD20
1 files changed, 6 insertions, 14 deletions
diff --git a/user/freealut/APKBUILD b/user/freealut/APKBUILD
index c249d9d21..035d254fe 100644
--- a/user/freealut/APKBUILD
+++ b/user/freealut/APKBUILD
@@ -6,20 +6,14 @@ pkgrel=0
pkgdesc="Free software implementation of OpenAL ALUT"
url="https://github.com/vancegroup/freealut"
arch="all"
+options="!check" # No test suite.
license="LGPL-2.0-only"
depends=""
-makedepends="openal-soft-dev"
+makedepends="cmake openal-soft-dev"
subpackages="$pkgname-dev"
source="https://distfiles.adelielinux.org/source/freealut-$pkgver.tar.xz"
-prepare() {
- cd "$builddir"
- default_prepare
- mkdir build
-}
-
build() {
- cd "$builddir"/build
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
@@ -29,18 +23,16 @@ build() {
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} \
- ..
- make
+ -Bbuild
+ make -C build
}
check() {
- cd "$builddir"/build
- CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+ CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test
}
package() {
- cd "$builddir"/build
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" -C build install
}
sha512sums="218f52ddc5f26aa6744d4209bb2ec6963e423dccec642ba96f9b6d0c1ee0972b9b86cd2fc4c81e21ba2fce7b6ff5e5150d23083b76602d0704a7e65b52f2cc45 freealut-1.1.0_git20140626.tar.xz"