Date: Sunday, September 11, 2022 @ 13:26:54 Author: arodseth Revision: 1300537
archrelease: copy trunk to community-x86_64 Added: bat/repos/community-x86_64/PKGBUILD (from rev 1300536, bat/trunk/PKGBUILD) Deleted: bat/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-09-11 13:26:48 UTC (rev 1300536) +++ PKGBUILD 2022-09-11 13:26:54 UTC (rev 1300537) @@ -1,55 +0,0 @@ -# Maintainer: Alexander F. Rødseth <xypr...@archlinux.org> -# Contributor: Wesley Moore <w...@wezm.net> - -pkgname=bat -pkgver=0.22.0 -pkgrel=1 -pkgdesc='Cat clone with syntax highlighting and git integration' -arch=(x86_64) -url='https://github.com/sharkdp/bat' -license=(APACHE MIT) -depends=(libgit2 oniguruma) -makedepends=(clang cmake git rust) -source=("git+$url#commit=1f9519d8b9bd3efac979766eefa0c6fae594b984") # tag: v0.22.0 -b2sums=(SKIP) - -prepare() { - cargo fetch --locked --manifest-path $pkgname/Cargo.toml -} - -build() { - export CFLAGS+=' -ffat-lto-objects -w' - cargo build --locked --manifest-path $pkgname/Cargo.toml --release -} - -check() { - cargo test --locked --manifest-path $pkgname/Cargo.toml -} - -package() { - install -Dm755 $pkgname/target/release/$pkgname "$pkgdir/usr/bin/$pkgname" - - # Package licenses - install -Dm644 $pkgname/LICENSE-APACHE \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE" - install -Dm644 $pkgname/LICENSE-MIT \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT" - - cd $pkgname/target/release/build - - # Find and package the man page (because cargo --out-dir is too new) - find . -name bat.1 -type f -exec install -Dm644 {} \ - "$pkgdir/usr/share/man/man1/bat.1" \; - - # Find and package the bash completion file - find . -name bat.bash -type f -exec install -Dm644 {} \ - "$pkgdir/usr/share/bash-completion/completions/bat" \; - - # Find and package the zsh completion file (not in zsh-completions yet) - find . -name bat.zsh -type f -exec install -Dm644 {} \ - "$pkgdir/usr/share/zsh/site-functions/_bat" \; - - # Find and package the fish completion file - find . -name bat.fish -type f -exec install -Dm644 {} \ - "$pkgdir/usr/share/fish/vendor_completions.d/bat.fish" \; -} Copied: bat/repos/community-x86_64/PKGBUILD (from rev 1300536, bat/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-09-11 13:26:54 UTC (rev 1300537) @@ -0,0 +1,55 @@ +# Maintainer: Alexander F. Rødseth <xypr...@archlinux.org> +# Contributor: Wesley Moore <w...@wezm.net> + +pkgname=bat +pkgver=0.22.1 +pkgrel=1 +pkgdesc='Cat clone with syntax highlighting and git integration' +arch=(x86_64) +url='https://github.com/sharkdp/bat' +license=(APACHE MIT) +depends=(libgit2 oniguruma) +makedepends=(clang cmake git rust) +source=("git+$url#commit=e5d95796141a719e208208182a5d3c2090a009c6") # tag: v0.22.1 +b2sums=(SKIP) + +prepare() { + cargo fetch --locked --manifest-path $pkgname/Cargo.toml +} + +build() { + export CFLAGS+=' -ffat-lto-objects -w' + cargo build --locked --manifest-path $pkgname/Cargo.toml --release +} + +check() { + cargo test --locked --manifest-path $pkgname/Cargo.toml +} + +package() { + install -Dm755 $pkgname/target/release/$pkgname "$pkgdir/usr/bin/$pkgname" + + # Package licenses + install -Dm644 $pkgname/LICENSE-APACHE \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE" + install -Dm644 $pkgname/LICENSE-MIT \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT" + + cd $pkgname/target/release/build + + # Find and package the man page (because cargo --out-dir is too new) + find . -name bat.1 -type f -exec install -Dm644 {} \ + "$pkgdir/usr/share/man/man1/bat.1" \; + + # Find and package the bash completion file + find . -name bat.bash -type f -exec install -Dm644 {} \ + "$pkgdir/usr/share/bash-completion/completions/bat" \; + + # Find and package the zsh completion file (not in zsh-completions yet) + find . -name bat.zsh -type f -exec install -Dm644 {} \ + "$pkgdir/usr/share/zsh/site-functions/_bat" \; + + # Find and package the fish completion file + find . -name bat.fish -type f -exec install -Dm644 {} \ + "$pkgdir/usr/share/fish/vendor_completions.d/bat.fish" \; +}