Date: Monday, April 17, 2023 @ 16:12:54
  Author: orhun
Revision: 1446996

addpkg: linuxwave 0.1.0-1

Added:
  linuxwave/
  linuxwave/repos/
  linuxwave/trunk/
  linuxwave/trunk/PKGBUILD

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Added: linuxwave/trunk/PKGBUILD
===================================================================
--- linuxwave/trunk/PKGBUILD                            (rev 0)
+++ linuxwave/trunk/PKGBUILD    2023-04-17 16:12:54 UTC (rev 1446996)
@@ -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:

Reply via email to