diff options
author | Alberto Corona | 2016-02-24 19:12:11 -0600 |
---|---|---|
committer | Alberto Corona | 2016-02-24 19:12:11 -0600 |
commit | a7975dd9674eb42071dee4243870eb1af25cca57 (patch) | |
tree | 8402612b6ad274f6677450baa33dc6fcd4c7daea /PKGBUILD | |
download | aur-yabs-git.tar.gz |
Initial commit
Signed-off-by: Alberto Corona <ac@albertocorona.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..801ff2400b70 --- /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 +} |