summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndlessEden2021-08-21 11:02:42 +1000
committerEndlessEden2021-08-21 11:02:42 +1000
commit2bbd6a8b699817e63b85e269d3450a9f8e8de7a1 (patch)
tree2b8e858180ea8f39aa9982c0810b500a70b8d68d
parent9691c9b3fe1a7219a2c714ccb058347c917b6dd9 (diff)
downloadaur-sndio-git.tar.gz
Updated PKGBUILD to reflect changes since 2018, fixed pkgver.
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD37
2 files changed, 30 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 30e6b14d29d..5db2cd45409 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,20 @@
pkgbase = sndio-git
pkgdesc = A small audio and MIDI framework part of the OpenBSD project
- pkgver = 1.0.1.r123.f8436a7
+ pkgver = 1.8.1.r537.d7019ee
pkgrel = 1
url = http://www.sndio.org
arch = i686
arch = x86_64
license = MIT
+ depends = alsa-lib
+ depends = libbsd
+ provides = sndio-git
provides = sndio
- source = git+http://caoua.org/git/sndio
- source = 0001-put-cookie-somewhere-better.patch
- md5sums = SKIP
+ provides = libsndio.so
+ conflicts = sndio
+ conflicts = sndio-git
+ replaces = sndio
+ source = sndio-git::git+http://caoua.org/git/sndio
md5sums = SKIP
pkgname = sndio-git
-
diff --git a/PKGBUILD b/PKGBUILD
index 8b5880179e7..698eb927e85 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,38 @@
-# Maintainer: Ivy Foster <ivy.foster@gmail.com>
+# Maintainer: EndlessEden <eden (at) rose.place>
+# Original Maintainer: Ivy Foster <ivy.foster@gmail.com>
pkgname='sndio-git'
-pkgver=1.0.1.r123.f8436a7
+pkgver=1.8.1.r537.d7019ee
pkgrel=1
pkgdesc='A small audio and MIDI framework part of the OpenBSD project'
arch=('i686' 'x86_64')
url='http://www.sndio.org'
license=('MIT')
-provides=('sndio')
-source=('git+http://caoua.org/git/sndio' '0001-put-cookie-somewhere-better.patch')
-md5sums=('SKIP' 'SKIP')
+depends=(alsa-lib libbsd)
+replaces=('sndio')
+conflicts=('sndio' "$pkgname")
+provides=("$pkgname" 'sndio' 'libsndio.so')
+source=("$pkgname"::'git+http://caoua.org/git/sndio')
+md5sums=('SKIP')
pkgver() {
- cd sndio
- git describe | sed 's,release_,,; s,_,.,g; s,-\(.*\)-.,.r\1.,'
-}
-
-prepare() {
- cd sndio
- git apply ../0001-put-cookie-somewhere-better.patch
+ cd "$srcdir"/"$pkgname"
+ git describe | sed "s,release_1_0_1,$(git tag | tail -1 | sed 's,release_,,; s,_,.,g'),; s,_,.,g; s,-\(.*\)-.,.r\1.,"
}
build() {
- cd sndio
- ./configure --prefix=/usr --enable-alsa
+ cd "$srcdir"/"$pkgname"
+ ./configure --prefix=/usr --enable-alsa --with-libbsd
make
- make -C libsndio libsndio.so
}
package() {
- make -C sndio DESTDIR="$pkgdir/" install
+ cd "$srcdir"/"$pkgname"
+
+ 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"
}