Date: Tuesday, April 6, 2021 @ 08:18:04 Author: arodseth Revision: 912027
upgpkg: exa 0.10.0-1 Modified: exa/trunk/PKGBUILD ----------+ PKGBUILD | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-04-06 07:48:29 UTC (rev 912026) +++ PKGBUILD 2021-04-06 08:18:04 UTC (rev 912027) @@ -1,43 +1,37 @@ # Maintainer: Alexander F. Rødseth <[email protected]> +# Maintainer: kpcyrd <[email protected]> # Contributor: Lucas Raab <[email protected]> pkgname=exa -pkgver=0.9.0 -pkgrel=3 +pkgver=0.10.0 +pkgrel=1 pkgdesc='ls replacement' arch=(x86_64) url='https://the.exa.website/' license=(MIT) -depends=(gcc-libs libssh2 zlib) -makedepends=(cargo cmake git rust) -source=("$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz" - # fix panic on dangling symlink - "https://github.com/ogham/exa/pull/584/commits/a7a8e99cf3a15992afb2383435da0231917ffb54.patch") -b2sums=('79319085cec312ca04e490a455ad0dd921f3ee6ab16d537f0085dd4fb525212a59ff65619e166b64ff605ddecf5fc44d3945543503816491d3962e8004da8818' - '90ba19880a56cde0be1ffbfc0cf0e67b7367c31eed4aedd28d1ba91c8ed2bbd571850a9e23d48a9a193ae8860771e1a4b5bc2f985282e0a355f91cc58491563a') +makedepends=(cargo git pandoc) +source=("$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz") +b2sums=('4633de80370872d0bece036f313a9c9fdef27ffa4676e12b741e60367ec074d0c5b9ba2a811d12df72c0dbb8304bfe08aa9fe3a791ec6aaa7ba6cca1cb7af351') -prepare() { +build() { cd $pkgname-$pkgver - patch --strip=1 < ../a7a8e99cf3a15992afb2383435da0231917ffb54.patch + cargo build --release + pandoc --standalone -f markdown -t man man/exa.1.md > exa.1 + pandoc --standalone -f markdown -t man man/exa_colors.5.md > exa_colors.5 } -build() { - make -C $pkgname-$pkgver -} - package() { cd $pkgname-$pkgver - - make PREFIX="$pkgdir/usr" install - - install -Dm644 contrib/completions.bash \ + cargo install --path . --root "$pkgdir"/usr + rm -f "$pkgdir"/usr/.crates* + install -Dm644 completions/completions.bash \ "$pkgdir/usr/share/bash-completion/completions/$pkgname" - install -Dm644 contrib/completions.zsh \ + install -Dm644 completions/completions.zsh \ "$pkgdir/usr/share/zsh/site-functions/_$pkgname" - install -Dm644 contrib/completions.fish \ + install -Dm644 completions/completions.fish \ "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish" install -Dm644 LICEN?E \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 exa.1 "$pkgdir/usr/share/man/man1/exa.1" + install -Dm644 exa_colors.5 "$pkgdir/usr/share/man/man5/exa_colors.5" } - -# vim: ts=2 sw=2 et:
