2021-01-31 11:09:14 +00:00
|
|
|
pkgname=exa
|
|
|
|
pkgver=0.9.0
|
2021-02-11 11:34:54 +00:00
|
|
|
ext="doc"
|
2021-01-31 11:09:14 +00:00
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl -L "https://github.com/ogham/exa/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.xz
|
|
|
|
ln -s /usr/bin/gmake make
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
PATH=$(pwd)"/..:$PATH" cargo build --release --locked --all-features
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd target/release
|
|
|
|
install -Dm755 "$pkgname" "$pkgdir/usr/bin/"
|
|
|
|
}
|
|
|
|
|
2021-02-11 11:34:54 +00:00
|
|
|
package_doc() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd contrib/man
|
|
|
|
install -Dm644 $pkgname.1 $pkgdir/usr/share/man/man1/
|
|
|
|
}
|
|
|
|
|
2021-01-31 11:09:14 +00:00
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENCE
|
|
|
|
}
|