summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasilii Novikov2019-08-27 10:10:36 +0200
committerVasilii Novikov2019-08-27 10:10:36 +0200
commit005219e4801c7574974bb77621a85c4f3ed1876c (patch)
tree529db4b410a842e8f93a621c2dea1f557fbe3101
parentb122270e4b355d173af8811a68b25a91cfe3f6c8 (diff)
downloadaur-005219e4801c7574974bb77621a85c4f3ed1876c.tar.gz
add support for "git" feature, optionally linking against pacman-git
See https://github.com/vn971/rua/pull/54
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 7 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af54dfd26b2..4dfbfeddd9a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = rua
pkgdesc = AUR helper in Rust providing control, review and jailed/offline build options
pkgver = 0.14.6
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/vn971/rua
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 3fa9da556df..51ceeef26ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=rua
pkgver=0.14.6
-pkgrel=1
+pkgrel=2
pkgdesc='AUR helper in Rust providing control, review and jailed/offline build options'
url='https://github.com/vn971/rua'
source=("https://github.com/vn971/rua/archive/${pkgver}.tar.gz")
@@ -24,9 +24,13 @@ build () {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p target/completions
+ if pacman -T pacman-git > /dev/null; then
+ _features="git"
+ fi
+
RUSTUP_TOOLCHAIN=stable \
COMPLETIONS_DIR=target/completions \
- cargo build --release
+ cargo build --features "${_features:-}" --release
}
package() {