diff options
author | Christoph Gysin | 2021-10-02 21:59:09 +0300 |
---|---|---|
committer | Christoph Gysin | 2021-10-02 21:59:09 +0300 |
commit | da8728eeef449eee823f75cf56e6a9edb7008c61 (patch) | |
tree | f7da9fd09ed8fd6f76808fe1b0bddb3247f09ee0 | |
parent | 9bd43b4f41ed90913c60108160a36bd825a19d7f (diff) | |
download | aur-da8728eeef449eee823f75cf56e6a9edb7008c61.tar.gz |
Build all features
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 19 insertions, 16 deletions
@@ -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 @@ -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 } |