mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 06:32:36 +01:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
pkgname=linuxwave
|
||
pkgver=0.1.3
|
||
pkgrel=0
|
||
pkgdesc="Generate music from the entropy of Linux"
|
||
url="https://github.com/orhun/linuxwave"
|
||
license="MIT"
|
||
arch="x86_64 aarch64" # Limited by zig aport
|
||
makedepends="zig"
|
||
subpackages="$pkgname-doc"
|
||
source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/linuxwave/releases/download/v$pkgver/v$pkgver.tar.gz"
|
||
builddir="$srcdir/$pkgname"
|
||
|
||
# We may want other than "baseline" for other targets, when enabled by zig
|
||
case "$CARCH" in
|
||
aarch64 | x86_64) cputarget=baseline ;;
|
||
esac
|
||
|
||
build() {
|
||
zig build -Drelease-safe -Dpie=true -Drelro=true ${cputarget:+-Dcpu="$cputarget"}
|
||
}
|
||
|
||
check() {
|
||
zig build test
|
||
}
|
||
|
||
package() {
|
||
install -Dm755 "zig-out/bin/$pkgname" -t "$pkgdir/usr/bin"
|
||
install -Dm644 "man/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
|
||
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||
}
|
||
|
||
sha512sums="
|
||
6dbe36a4b0a19f810e81f7b40d54087c77c8b99bbdfb512149cf2e3f5e34eaa4ca6120156099d52e2d41ce8a1efc03b23ed5e0f66e9a2ff0d529bcabf71d9d82 linuxwave-0.1.3.tar.gz
|
||
"
|