[arch-commits] Commit in bat-extras/repos (community-any community-any/PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Feb 2 19:00:41 UTC 2022
Date: Wednesday, February 2, 2022 @ 19:00:41
Author: grawlinson
Revision: 1123043
archrelease: copy trunk to community-any
Added:
bat-extras/repos/community-any/
bat-extras/repos/community-any/PKGBUILD
(from rev 1123041, bat-extras/trunk/PKGBUILD)
----------+
PKGBUILD | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
Copied: bat-extras/repos/community-any/PKGBUILD (from rev 1123041, bat-extras/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-02-02 19:00:41 UTC (rev 1123043)
@@ -0,0 +1,79 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=bat-extras
+pkgver=2021.08.21.r1.g8ad00bd
+pkgrel=1
+pkgdesc="Bash scripts that integrate bat with various command line tools"
+arch=('any')
+url="https://github.com/eth-p/bat-extras"
+license=('MIT')
+depends=('bat' 'bash' 'git' 'ripgrep' 'man-db')
+optdepends=(
+ 'ncurses: optional for batdiff script'
+ 'git-delta: optional for batdiff script'
+ 'fzf: optional for batman script'
+ 'exa: optional for batpipe script'
+ 'entr: optional for batwatch script'
+ 'prettier: various code formatting for prettybat script'
+ 'shfmt: bash formatting for prettybat script'
+ 'rustfmt: Rust formatting for prettybat script'
+ 'clang: C / C++ / Objective-C formatting for prettybat script'
+ 'python-black: Python formatting for prettybat script'
+)
+checkdepends=('fish')
+_commit='8ad00bd978678b67d61176e8397369e1e6afa4fc'
+source=(
+ "git+https://github.com/eth-p/bat-extras.git#commit=$_commit"
+ 'git+https://github.com/eth-p/best.git'
+ 'git+https://github.com/eth-p/best-tests.git'
+)
+b2sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | \
+ sed -e 's/^v//' \
+ -e 's/\([^-]*-g\)/r\1/' \
+ -e 's/-/./g'
+}
+
+prepare(){
+ cd "$pkgname"
+
+ # setup submodules
+ git submodule init
+ git config submodule.best.url "$srcdir/best"
+ git submodule update --no-fetch
+
+ cd .test-framework
+ git submodule init
+ git config submodule.best-tests.url "$srcdir/best-tests"
+ git submodule update --no-fetch
+}
+
+check() {
+ cd "$pkgname"
+
+ ./test.sh --verbose --strict --snapshot:show
+}
+
+package() {
+ cd "$pkgname"
+
+ ./build.sh \
+ --minify=none \
+ --no-verify \
+ --prefix="$pkgdir/usr" \
+ --install
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" \
+ CONTRIBUTING.md README.md doc/*
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" man/*
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
+}
More information about the arch-commits
mailing list