summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Gysin2021-10-02 21:59:09 +0300
committerChristoph Gysin2021-10-02 21:59:09 +0300
commitda8728eeef449eee823f75cf56e6a9edb7008c61 (patch)
treef7da9fd09ed8fd6f76808fe1b0bddb3247f09ee0
parent9bd43b4f41ed90913c60108160a36bd825a19d7f (diff)
downloadaur-da8728eeef449eee823f75cf56e6a9edb7008c61.tar.gz
Build all features
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD33
2 files changed, 19 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2a7f939aab4..3063ae499fb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = librespot-git
pkgdesc = Open Source Spotify client library
- pkgver = 1357.68bec41
+ pkgver = 1381.8d70fd9
pkgrel = 1
epoch = 1
url = https://github.com/librespot-org/librespot
diff --git a/PKGBUILD b/PKGBUILD
index 3060c76ddbe..b58d3ab1571 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=librespot-git
_pkgname=librespot
-pkgver=1357.68bec41
+pkgver=1381.8d70fd9
pkgrel=1
epoch=1
pkgdesc="Open Source Spotify client library"
@@ -16,29 +16,32 @@ conflicts=('librespot')
source=('git+https://github.com/librespot-org/librespot')
sha256sums=('SKIP')
-pkgver()
-{
+pkgver() {
cd "$_pkgname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
-build()
-{
+build() {
cd "$_pkgname"
cargo build \
- --no-default-features \
- --features alsa-backend \
+ --frozen \
+ --all-features \
--release
}
-package()
-{
- install -D -m 755 "$_pkgname"/target/release/librespot \
- "$pkgdir"/usr/bin/librespot
- install -D -m 644 "$_pkgname"/contrib/librespot.service \
+package() {
+ cd "$_pkgname"
+ cargo install \
+ --no-track \
+ --locked \
+ --all-features \
+ --root "$pkgdir/usr" \
+ --path .
+
+ install -D -m 644 contrib/librespot.service \
"$pkgdir"/usr/lib/systemd/system/librespot.service
- install -D -m 644 "$_pkgname"/contrib/librespot.user.service \
+ install -D -m 644 contrib/librespot.user.service \
"$pkgdir"/usr/lib/systemd/user/librespot.service
- install -D -m 644 "$_pkgname"/LICENSE \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m 644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}