# Maintainer: Natanael Copa pkgname=checkbashisms pkgver=2.18.7 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="4816d400083bd9b4d5389bdbab768083fb6e59c797d1eb20a8ec3c42e19ae4c0bbae376effc79815014fa5f8c74148fdd0c61350401955bdccc50a86801f8e5d devscripts_2.18.7.tar.xz"