summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Gysin2021-10-05 12:47:34 +0300
committerChristoph Gysin2021-10-05 12:47:34 +0300
commit70bd6aef009984c9b55ca202779826a079af7c21 (patch)
tree1937a6a1501f34464f3ada6a64eedc43b6b26bbf
parentda8728eeef449eee823f75cf56e6a9edb7008c61 (diff)
downloadaur-70bd6aef009984c9b55ca202779826a079af7c21.tar.gz
Add prepare() to fetch dependencies
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3063ae499fb..2f56cbdff22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = librespot-git
pkgdesc = Open Source Spotify client library
- pkgver = 1381.8d70fd9
+ pkgver = 1383.095536f
pkgrel = 1
epoch = 1
url = https://github.com/librespot-org/librespot
diff --git a/PKGBUILD b/PKGBUILD
index b58d3ab1571..99b8f068e81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=librespot-git
_pkgname=librespot
-pkgver=1381.8d70fd9
+pkgver=1383.095536f
pkgrel=1
epoch=1
pkgdesc="Open Source Spotify client library"
@@ -21,6 +21,13 @@ pkgver() {
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
+prepare() {
+ cd "$_pkgname"
+ cargo fetch \
+ --locked \
+ --target "$CARCH-unknown-linux-gnu"
+}
+
build() {
cd "$_pkgname"
cargo build \