Date: Monday, April 17, 2023 @ 16:13:16
Author: orhun
Revision: 1446997
archrelease: copy trunk to community-x86_64
Added:
linuxwave/repos/community-x86_64/
linuxwave/repos/community-x86_64/PKGBUILD
(from rev 1446996, linuxwave/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: linuxwave/repos/community-x86_64/PKGBUILD (from rev 1446996,
linuxwave/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-04-17 16:13:16 UTC (rev 1446997)
@@ -0,0 +1,55 @@
+# Maintainer: Orhun Parmaksız <[email protected]>
+
+pkgname=linuxwave
+pkgver=0.1.0
+_gitcommit=5bf601d7bb763c1985ba8089e2e00119b40d8d80
+pkgrel=1
+pkgdesc="Generate music from the entropy of Linux"
+arch=('x86_64')
+url="https://github.com/orhun/linuxwave"
+license=('MIT')
+depends=('zig')
+makedepends=('git')
+source=(
+ "${pkgname}::git+$url#commit=$_gitcommit"
+ "${pkgname}-zig-clap::git+https://github.com/Hejsil/zig-clap"
+)
+sha256sums=('SKIP'
+ 'SKIP')
+
+prepare() {
+ cd "${pkgname}"
+ git submodule init
+ git config submodule."libs/zig-clap".url "${srcdir}/${pkgname}"-zig-clap
+ git -c protocol.file.allow=always submodule update --init --recursive
+}
+
+build() {
+ cd "$pkgname"
+ DESTDIR="build" zig build \
+ --prefix /usr \
+ --search-prefix /usr \
+ -Dtarget=native-linux.5.15-gnu \
+ -Dcpu=baseline \
+ -Drelease-safe \
+ -Dpie=true \
+ -Drelro=true
+}
+
+check() {
+ cd "$pkgname"
+ zig build test \
+ -Dtarget=native-linux.5.15-gnu \
+ -Dcpu=baseline \
+ -Drelease-safe
+}
+
+package() {
+ cd "$pkgname"
+ cp -a build/* "$pkgdir"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm 644 "man/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
+}
+
+# vim: ts=2 sw=2 et: