summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..801ff2400b7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Author: Alberto Corona <ac@albertocorona.com>
+
+pkgname=yabs-git
+pkgver=0.1.0.rs.36.g26a628c
+pkgrel=1
+pkgdesc="Yet another build system"
+arch=("any")
+url="https://github.com/0X1A/yabs"
+license=('BSD')
+makedepends=('git' 'cargo' 'rust')
+provides=('yabs')
+conflicts=('yabs')
+source=('git+https://github.com/0X1A/yabs.git')
+md5sums=('SKIP')
+_gitname=yabs
+
+pkgver() {
+ cd $_gitname
+ echo $(git describe --always | sed 's/-/./g')
+}
+
+build() {
+ cd $_gitname
+ cargo build --release -j2
+}
+
+package() {
+ cd $_gitname
+ install -d $pkgdir/usr/bin
+ install -m755 $srcdir/yabs/target/release/yabs $pkgdir/usr/bin/yabs
+}