diff options
author | Lukas Schmidt | 2021-04-14 12:56:46 +0200 |
---|---|---|
committer | Lukas Schmidt | 2021-04-14 12:56:46 +0200 |
commit | 49bc554f5ec9bf10a33174912c33061cefd32d04 (patch) | |
tree | e6ec00641e3cb806c5b66c0c603418372d4ab43a | |
download | aur-49bc554f5ec9bf10a33174912c33061cefd32d04.tar.gz |
initial package
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ac55d71791b2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = librespot-pulseaudio-git + pkgdesc = Open Source Spotify client library with pulseaudio backend + pkgver = 1242.4fc3acc + pkgrel = 1 + epoch = 1 + url = https://github.com/librespot-org/librespot + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + arch = aarch64 + license = MIT + makedepends = git + makedepends = rust + depends = libvorbis + depends = alsa-lib + provides = librespot + conflicts = librespot + source = git+https://github.com/librespot-org/librespot + sha256sums = SKIP + +pkgname = librespot-pulseaudio-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7c4e9894c994 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Elixias <elixias@elixias.de> + +pkgname=librespot-pulseaudio-git +_pkgname=librespot +pkgver=1242.4fc3acc +pkgrel=1 +epoch=1 +pkgdesc="Open Source Spotify client library with pulseaudio backend" +arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') +url="https://github.com/librespot-org/librespot" +license=('MIT') +depends=('libvorbis' 'alsa-lib') +makedepends=('git' 'rust') +provides=('librespot') +conflicts=('librespot') +source=('git+https://github.com/librespot-org/librespot') +sha256sums=('SKIP') + +pkgver() +{ + cd "$_pkgname" + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +build() +{ + cd "$_pkgname" + cargo build \ + --no-default-features \ + --features pulseaudio-backend,with-vorbis,with-tremor,with-dns-sd \ + --release +} + +package() +{ + install -D -m 755 "$_pkgname"/target/release/librespot \ + "$pkgdir"/usr/bin/librespot + install -D -m 644 "$_pkgname"/contrib/librespot.service \ + "$pkgdir"/usr/lib/systemd/system/librespot.service + install -D -m 644 "$_pkgname"/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |