[arch-commits] Commit in sndio/repos (2 files)

Ivy Foster escondida at gemini.archlinux.org
Tue Aug 3 23:56:00 UTC 2021


    Date: Tuesday, August 3, 2021 @ 23:56:00
  Author: escondida
Revision: 993590

archrelease: copy trunk to community-staging-x86_64

Added:
  sndio/repos/community-staging-x86_64/
  sndio/repos/community-staging-x86_64/PKGBUILD
    (from rev 993589, sndio/trunk/PKGBUILD)

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

Copied: sndio/repos/community-staging-x86_64/PKGBUILD (from rev 993589, sndio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-08-03 23:56:00 UTC (rev 993590)
@@ -0,0 +1,52 @@
+# Maintainer: Ivy Foster <code at escondida.tk>
+# Reference: PKGBUILD(5)
+
+pkgname=sndio
+pkgver=1.8.1
+pkgrel=1
+pkgdesc='A small audio and MIDI framework part of the OpenBSD project'
+arch=(x86_64)
+url='https://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)
+
+provides=(libsndio.so)
+
+source=(
+	"https://sndio.org/sndio-$pkgver.tar.gz"
+	"https://sndio.org/sndio-$pkgver.tar.gz.asc"
+)
+# Checksum source: http://www.sndio.org/sndio-$pkgver.tar.gz.sha256
+sha256sums=(
+	f81d37189e072cb4804ac98a059d74f963f69e9945eaff3d0d6a2f98d71a6321
+	SKIP
+)
+validpgpkeys=(6B1A7447AAF091CCDD36BAA6015E339411694A6E)
+
+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