Date: Saturday, August 11, 2018 @ 23:11:06
  Author: escondida
Revision: 371193

archrelease: copy trunk to extra-x86_64

Added:
  sndio/repos/extra-x86_64/
  sndio/repos/extra-x86_64/PKGBUILD
    (from rev 371192, sndio/trunk/PKGBUILD)

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

Copied: sndio/repos/extra-x86_64/PKGBUILD (from rev 371192, 
sndio/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD                               (rev 0)
+++ extra-x86_64/PKGBUILD       2018-08-11 23:11:06 UTC (rev 371193)
@@ -0,0 +1,42 @@
+# Maintainer: Ivy Foster <c...@escondida.tk>
+# Reference: PKGBUILD(5)
+
+pkgname=sndio
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='A small audio and MIDI framework part of the OpenBSD project'
+arch=(x86_64)
+url='http://www.sndio.org'
+license=(ISC)
+
+# sndio can be built without libbsd, but there are a bunch of individual
+# ISC-licensed files by different authors to extract the licenses from
+# if done that way. Licenses are complicated.
+depends=(alsa-lib libbsd)
+
+source=("http://www.sndio.org/sndio-$pkgver.tar.gz";)
+# checksums provided by packager
+sha256sums=(12c70044749ad9cb7eaeb26c936816aa6b314fe4be71ef479d12272e4c5ad253)
+backup=(etc/default/sndiod)
+
+build() {
+       cd "sndio-$pkgver"
+       ./configure --prefix=/usr --enable-alsa --with-libbsd
+       make
+}
+
+package() {
+       cd "sndio-$pkgver"
+
+       make DESTDIR="$pkgdir/" install
+
+       install -D -m 644 contrib/sndiod.service \
+               "$pkgdir/usr/lib/systemd/system/sndiod.service"
+       install -D -m 644 contrib/default.sndiod \
+               "$pkgdir/etc/default/sndiod"
+
+       install -d "$pkgdir/usr/share/licenses/sndio"
+       # this is the most up-to-date license outside of bsd-compat,
+       # which isn't being used in this build
+       sed '/^ \*\//q' aucat/aucat.c > 
"$pkgdir/usr/share/licenses/sndio/LICENSE"
+}

Reply via email to