[arch-commits] Commit in ossp/trunk (PKGBUILD osspd.modules-load osspd.service)
Jan Steffens
heftig at archlinux.org
Fri Feb 15 17:21:22 UTC 2019
Date: Friday, February 15, 2019 @ 17:21:20
Author: heftig
Revision: 346302
1.3.2+11+g9e94d67-1
Modified:
ossp/trunk/PKGBUILD
Deleted:
ossp/trunk/osspd.modules-load
ossp/trunk/osspd.service
--------------------+
PKGBUILD | 49 ++++++++++++++++++++++++++++++++++---------------
osspd.modules-load | 2 --
osspd.service | 8 --------
3 files changed, 34 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-02-15 17:19:26 UTC (rev 346301)
+++ PKGBUILD 2019-02-15 17:21:20 UTC (rev 346302)
@@ -2,39 +2,58 @@
# Contributor: Jonathan Liu <net147 at gmail.com>
pkgname=ossp
-pkgver=1.3.2
-pkgrel=16
+pkgver=1.3.2+11+g9e94d67
+pkgrel=1
pkgdesc="Emulate OSS device using CUSE"
arch=(x86_64)
-url="http://sourceforge.net/projects/osspd"
+url="https://sourceforge.net/projects/osspd/"
license=(GPL2)
depends=('fuse2>=2.8.0')
makedepends=(libpulse alsa-lib git)
optdepends=("libpulse: PulseAudio backend"
"alsa-lib: ALSA backend")
-source=('ossp::git://git.code.sf.net/p/osspd/code#commit=097dc7b'
- osspd.service osspd.modules-load)
-md5sums=('SKIP'
- 'd084bd24e3dff167541dd3ff860cdebf'
- '36c01e144db7cf253df12d8ad9dac942')
+_commit=9e94d673070623c955646e802d42950906b6e184 # master
+source=("git+https://github.com/heftig/osspd#commit=$_commit")
+sha256sums=('SKIP')
+pkgver() {
+ cd osspd
+ git describe --tags | sed 's/-/+/g'
+}
+
prepare() {
- cd $pkgname
+ cd osspd
sed -i 's|/sbin|/bin|g' Makefile
sed -i 's|GROUP="audio"|SUBSYSTEM=="cuse", MODE="0666"|' 98-osscuse.rules
}
build() {
- cd $pkgname
+ cd osspd
make
}
package() {
- cd $pkgname
- make DESTDIR="$pkgdir" prefix=/usr UDEVDIR=/usr/lib/udev/rules.d install
+ cd osspd
+ make install \
+ DESTDIR="$pkgdir" \
+ prefix=/usr \
+ UDEVDIR=/usr/lib/udev/rules.d
+ install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README
- install -Dm644 "$srcdir/osspd.service" "$pkgdir/usr/lib/systemd/system/osspd.service"
- install -Dm644 "$srcdir/osspd.modules-load" "$pkgdir/usr/lib/modules-load.d/osspd.conf"
+ install -Dm644 /dev/stdin "$pkgdir/usr/lib/systemd/system/osspd.service" <<END
+[Unit]
+Description=OSS Userspace Bridge
- install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
+[Service]
+ExecStart=/usr/bin/osspd -f
+
+[Install]
+WantedBy=multi-user.target
+END
+
+ install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/osspd.conf" <<END
+cuse
+snd-seq-oss
+END
+
}
Deleted: osspd.modules-load
===================================================================
--- osspd.modules-load 2019-02-15 17:19:26 UTC (rev 346301)
+++ osspd.modules-load 2019-02-15 17:21:20 UTC (rev 346302)
@@ -1,2 +0,0 @@
-cuse
-snd-seq-oss
Deleted: osspd.service
===================================================================
--- osspd.service 2019-02-15 17:19:26 UTC (rev 346301)
+++ osspd.service 2019-02-15 17:21:20 UTC (rev 346302)
@@ -1,8 +0,0 @@
-[Unit]
-Description=OSS Userspace Bridge
-
-[Service]
-ExecStart=/usr/bin/osspd -f
-
-[Install]
-WantedBy=multi-user.target
More information about the arch-commits
mailing list