# Maintainer: Natanael Copa pkgname=checkbashisms pkgver=2.19.5 pkgrel=0 pkgdesc="Check shell scripts for POXIX compliance" url="https://tracker.debian.org/pkg/devscripts" arch="noarch" license="GPL-2.0-or-later" depends="perl" subpackages="$pkgname-doc" source="http://cdn.debian.net/debian/pool/main/d/devscripts/devscripts_$pkgver.tar.xz" builddir="$srcdir/devscripts-$pkgver/scripts" check() { cd "$builddir" printf '#!/bin/sh\necho "hello world"\n' > ./testfile perl ./checkbashisms --version perl ./checkbashisms ./testfile } prepare() { default_prepare mv "$pkgname".pl "$pkgname" sed -i "s/###VERSION###/$pkgver/" "$pkgname" } package() { cd "$builddir" install -D -m755 "$pkgname" "$pkgdir/usr/bin/$pkgname" install -D -m755 "$pkgname".1 "$pkgdir/usr/share/man/man1/$pkgname".1 } sha512sums="23cfe9bd8288a9d3a2449a16f46a7c1960813a335cad99b8fcada074610837795be2a26768dab555dad84e4fb7cb7d99ba22979eda9c995b14d0297c7a1bb1c5 devscripts_2.19.5.tar.xz"