Date: Wednesday, April 4, 2018 @ 22:18:51 Author: escondida Revision: 314292
archrelease: copy trunk to community-x86_64 Added: sndio/repos/community-x86_64/ sndio/repos/community-x86_64/PKGBUILD (from rev 314291, sndio/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: sndio/repos/community-x86_64/PKGBUILD (from rev 314291, sndio/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2018-04-04 22:18:51 UTC (rev 314292) @@ -0,0 +1,42 @@ +# Maintainer: Ivy Foster <c...@escondida.tk> +# Reference: PKGBUILD(5) + +pkgname=sndio +pkgver=1.4.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=(68713db624797dbff69c0f4ce1b24054fb0803da340508edbc5e08d6778f9781) +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" +}