projects/aports·blob master · refs

36 lines · 1.1 KiB

1# Contributor: Orhun Parmaksız <[email protected]>
2# Maintainer: Orhun Parmaksız <[email protected]>
3pkgname=linuxwave
4pkgver=0.4.0
5pkgrel=0
6pkgdesc="Generate music from the entropy of Linux"
7url="https://github.com/orhun/linuxwave"
8license="MIT"
9arch="x86_64 aarch64" # Limited by zig aport
10makedepends="zig"
11subpackages="$pkgname-doc"
12source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/linuxwave/releases/download/v$pkgver/v$pkgver.tar.gz"
13builddir="$srcdir/$pkgname"
14
15# We may want other than "baseline" for other targets, when enabled by zig
16case "$CARCH" in
17aarch64 | x86_64) cputarget=baseline ;;
18esac
19
20build() {
21 zig build -Doptimize=ReleaseSafe -Dpie=true -Drelro=true ${cputarget:+-Dcpu="$cputarget"}
22}
23
24check() {
25 zig build test
26}
27
28package() {
29 install -Dm755 "zig-out/bin/$pkgname" -t "$pkgdir/usr/bin"
30 install -Dm644 "man/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
31 install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
32}
33
34sha512sums="
35bef92edb6c4c235c0b502e9426775de119a9aab4abc967ae1cd9bc511cf1b953d797ffbabce12b37c44889dba2370bf887d09d3feae3c039de02f3d5262faaa5 linuxwave-0.4.0.tar.gz
36"