[arch-commits] Commit in sndio/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 17:03:12 UTC 2020
Date: Tuesday, July 7, 2020 @ 17:03:11
Author: felixonmars
Revision: 659521
archrelease: copy trunk to community-staging-x86_64
Added:
sndio/repos/community-staging-x86_64/
sndio/repos/community-staging-x86_64/PKGBUILD
(from rev 659520, sndio/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: sndio/repos/community-staging-x86_64/PKGBUILD (from rev 659520, sndio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 17:03:11 UTC (rev 659521)
@@ -0,0 +1,42 @@
+# Maintainer: Ivy Foster <code at escondida.tk>
+# Reference: PKGBUILD(5)
+
+pkgname=sndio
+pkgver=1.6.0
+pkgrel=2
+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=(99e0064ac11aceab24c73ed4630a31de401ff2f37689565b7b375682476f5bc1)
+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"
+}
More information about the arch-commits
mailing list