blob: 14001d53114d05bf2875fbdfad024c2384ce391a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: gitlab.archlinux.org/archlinux/packaging/packages/linuxwave
pkgname=linuxwave-git
pkgver=0.2.0.r1.rg8c67bf7
pkgrel=1
pkgdesc="Generate music from the entropy of Linux (latest commit)"
url="https://github.com/orhun/linuxwave"
license=('MIT')
arch=('aarch64' 'arm' 'i386' 'riscv64' 'x86_64')
makedepends=('clang' 'git' 'lld' 'zig')
provides=("linuxwave")
conflicts=("linuxwave")
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
cd linuxwave
git describe --long --tags | sed 's/^v//;s/-/.r/g'
}
build() {
cd linuxwave
DESTDIR="build" zig build \
--summary all \
--global-cache-dir ../zig-global-cache \
--prefix /usr \
--search-prefix /usr \
--release=safe \
-Dtarget=native-linux.6.1-gnu.2.38 \
-Dcpu=baseline \
-Dpie=true
}
check() {
cd linuxwave
zig build test \
--summary all \
--global-cache-dir ../zig-global-cache \
--prefix /usr \
--search-prefix /usr \
--release=safe \
-Dtarget=native-linux.6.1-gnu.2.38 \
-Dcpu=baseline \
-Dpie=true
}
package() {
cd linuxwave
mv build/* "$pkgdir"
install -Dm644 CHANGELOG.md README.md -t "$pkgdir/usr/share/doc/linuxwave"
install -Dm644 man/linuxwave.1 -t "$pkgdir/usr/share/man/man1"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/linuxwave"
}
|