2023-06-30 09:20:11 +00: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.4
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="
239487f354a374c5efb06f20822c295e10a3cb451c53f83493823c2763809605a2f84220adf0bd7a5022c661aeb5b34b6d0eb08c6073103d2cac37f3b68bf72b linuxwave-0.1.4.tar.gz
"