Date: Monday, February 14, 2022 @ 03:08:07 Author: grawlinson Revision: 1133106
upgpkg: bat-extras 2021.08.21.r1-3 * Add makedepends: shfmt (minification saves 0.4KB! yeah!) * Fix version string using current commit. Modified: bat-extras/trunk/PKGBUILD ----------+ PKGBUILD | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-13 23:58:58 UTC (rev 1133105) +++ PKGBUILD 2022-02-14 03:08:07 UTC (rev 1133106) @@ -2,7 +2,7 @@ pkgname=bat-extras pkgver=2021.08.21.r1.g8ad00bd -pkgrel=2 +pkgrel=3 pkgdesc="Bash scripts that integrate bat with various command line tools" arch=('any') url="https://github.com/eth-p/bat-extras" @@ -14,6 +14,8 @@ 'ripgrep' 'man' ) +makedepends=('shfmt') +checkdepends=('fish') optdepends=( 'ncurses: optional for batdiff script' 'git-delta: optional for batdiff script' @@ -26,7 +28,6 @@ '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" @@ -54,10 +55,15 @@ git config submodule.best.url "$srcdir/best" git submodule update --no-fetch - cd .test-framework + pushd .test-framework git submodule init git config submodule.best-tests.url "$srcdir/best-tests" git submodule update --no-fetch + popd + + # fix incorrect version string using commit date + # https://github.com/eth-p/bat-extras/issues/68 + git show --no-patch --format=%cd --date=format:%Y.%m.%d > version.txt } check() { @@ -69,9 +75,8 @@ package() { cd "$pkgname" + # scripts ./build.sh \ - --minify=none \ - --no-verify \ --prefix="$pkgdir/usr" \ --install @@ -78,6 +83,8 @@ # documentation install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" \ CONTRIBUTING.md README.md doc/* + + # man pages install -vDm644 -t "$pkgdir/usr/share/man/man1" man/* # license