summaryrefslogtreecommitdiff
path: root/repo/sndio/sndio.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
committerdavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
commit873665024ebfaa761ee49b508a79db7178aeb778 (patch)
tree6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /repo/sndio/sndio.xibuild
parent4445f6e15185f58dc599390ab74df3ca19b437b7 (diff)
added gnupg
Diffstat (limited to 'repo/sndio/sndio.xibuild')
-rw-r--r--repo/sndio/sndio.xibuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/repo/sndio/sndio.xibuild b/repo/sndio/sndio.xibuild
new file mode 100644
index 0000000..a795bca
--- /dev/null
+++ b/repo/sndio/sndio.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="sndio"
+DESC="Small audio and MIDI framework part of the OpenBSD project"
+
+MAKEDEPS="alsa-lib"
+
+PKG_VER=1.8.1
+SOURCE="https://sndio.org/sndio-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+sndiod.initd
+"
+
+build() {
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+ mkdir -p "$PKG_DEST"/usr/sbin
+ mv "$PKG_DEST"/usr/bin/sndiod "$PKG_DEST"/usr/sbin/
+ install -D -m 644 contrib/default.sndiod \
+ "$PKG_DEST"/etc/conf.d/sndiod
+ install -m755 -D "$BUILD_ROOT"/sndiod.initd \
+ "$PKG_DEST"/etc/init.d/sndiod
+}
+