diff options
author | tuftedocelot <tuftedocelot@fastmail.fm> | 2015-02-25 12:22:58 -0600 |
---|---|---|
committer | tuftedocelot <tuftedocelot@fastmail.fm> | 2015-02-25 12:22:58 -0600 |
commit | 085b71cf07ed8cfc0d8d5488845546d97763d17e (patch) | |
tree | 394bb6ec8ef78a095fc1270bba96606b28708c5d /contrib | |
parent | 3e6cce5b5c9f43f713a2f50632045fb8d1d546f7 (diff) |
Add PKGBUILD to contrib
Create a contrib folder for optional extras
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/PKGBUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD new file mode 100644 index 0000000..74d30ae --- /dev/null +++ b/contrib/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: tuftedocelot@fastmail.fm +_pkgname=exa +pkgname=${_pkgname}-git +pkgver=257 +pkgrel=1 +pkgdesc='Replacement for ls written in Rust.' +arch=('i686' 'x86_64') +url="https://github.com/ogham/exa" +license='GPLv3' +makedepends=('cmake' 'rust-nightly-bin' 'libgit2') +source=("git+https://github.com/ogham/exa.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + git rev-list --count HEAD +} + +package() { + cd "$srcdir/$_pkgname" + cargo build + install -Dm755 "$srcdir/$_pkgname/target/$_pkgname" "$pkgdir/usr/bin/$_pkgname" +} |