Date: Sunday, September 4, 2022 @ 19:21:26 Author: grawlinson Revision: 1292879
upgpkg: checkbashisms 2.22.2-1; new upstream release * New upstream release. * Change source/url to new upstream location. * Change source/url to https. Modified: checkbashisms/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-09-04 19:00:07 UTC (rev 1292878) +++ PKGBUILD 2022-09-04 19:21:26 UTC (rev 1292879) @@ -1,21 +1,33 @@ -# Maintainer: Eli Schwartz <[email protected]> +# Maintainer: George Rawlinson <[email protected]> +# Contributor: Eli Schwartz <[email protected]> pkgname=checkbashisms -pkgver=2.21.4 +pkgver=2.22.2 pkgrel=1 pkgdesc='Debian script that checks for bashisms' arch=('any') -url="https://packages.qa.debian.org/d/devscripts.html" +url='https://tracker.debian.org/pkg/devscripts' license=('GPL') depends=('perl') -source=("http://http.debian.net/debian/pool/main/d/devscripts/devscripts_${pkgver}.tar.xz") -sha256sums=('c18885e36d9c78b319001d4dbaf64e1b85bd322cfd0f62a04cc9d48550f7397f') -b2sums=('29339490586a66c6360f599a90e23452fd1e99fd01757e258e082b9550731b3e443b12fb9ce9b8fe6fb229f228a115f87a9b91b8769000afd741eb77e9e7a4a4') +source=("https://salsa.debian.org/debian/devscripts/-/archive/v$pkgver/devscripts-v$pkgver.tar.gz") +sha512sums=('9c08b7f2d4e386bafdab12443ba621204e2ee543f660bd574ad5f8dbfe33c889157dfa6fdf0616528f0735ee79885f67af5cea2da6e3aea6858ce945735251aa') +b2sums=('c2e2d0cf322c3e31d3b4acc55683ed0a83d93ac8113de30d25f37a17700470d8ef1aeed00ad169ae4569f99bf4b710010e4ab4e06d4b9e198a1b42dfd9ebe9fd') +prepare() { + cd "devscripts-v$pkgver/scripts" + + sed "s/###VERSION###/$pkgver/g" checkbashisms.pl > checkbashisms +} + package() { - cd "${srcdir}"/devscripts-${pkgver}/scripts + cd "devscripts-v$pkgver/scripts" - sed "s/###VERSION###/${pkgver}/g" checkbashisms.pl | install -Dm755 /dev/stdin "${pkgdir}"/usr/bin/checkbashisms - install -Dm644 checkbashisms.1 "${pkgdir}"/usr/share/man/man1/checkbashisms.1 - install -Dm644 checkbashisms.bash_completion "${pkgdir}"/usr/share/bash-completion/completions/checkbashisms + # binary + install -vDm755 -t "$pkgdir/usr/bin" "$pkgname" + + # man page + install -vDm644 -t "$pkgdir/usr/share/man/man1" "$pkgname.1" + + # bash completions + install -vDm644 "$pkgname.bash_completion" "$pkgdir/usr/share/bash-completion/completions/$pkgname" }
