Orhun Parmaksız 72ebbc7492 testing/linuxwave: new aport
https://github.com/orhun/linuxwave
Generate music from the entropy of Linux
testing/
2023-04-19 15:47:09 +02:00

37 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
"