summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorb1tl0rd2019-12-04 14:14:01 -0300
committerb1tl0rd2019-12-04 14:17:18 -0300
commit058e7bdfefb456f042b93f3bd410ca09de141d29 (patch)
tree03e35e54c060bcebdb5c3aa533344ccdb39711ab /PKGBUILD
downloadaur-pier-git.tar.gz
pier-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..00c9e189575
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Walter C <bitlord@disroot.org>
+
+pkgname="pier-git"
+_pkgname="pier"
+pkgver=0.1.2.74.ge99e7ae
+pkgrel=1
+pkgdesc="A Linux script management CLI written in Rust"
+arch=("i686" "x86_64")
+url="https://github.com/BenSchZA/pier"
+license=("MIT")
+depends=()
+makedepends=("rust" "cargo" "git")
+provides=("pier")
+conflicts=("pier")
+source=("$_pkgname::git+https://github.com/BenSchZA/pier.git")
+sha384sums=("SKIP")
+
+pkgver() {
+ cd "$_pkgname"
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release --locked
+}
+
+check() {
+ cd $_pkgname
+ cargo test --release --locked
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
+}