mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-05 20:37:52 +00:00
Add PKGBUILD to contrib
Create a contrib folder for optional extras
This commit is contained in:
parent
3e6cce5b5c
commit
085b71cf07
23
contrib/PKGBUILD
Normal file
23
contrib/PKGBUILD
Normal file
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user