# Maintainer: Natanael Copa pkgname=checkbashisms pkgver=2.18.1 pkgrel=0 pkgdesc="Basic checks on shell scripts for the presence of non portable syntax" subpackages="$pkgname-doc" url="http://cdn.debian.net/debian/pool/main/d/devscripts/" arch="noarch" license="GPL-2.0" depends="perl" 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="d2043b1e399cc0eece2eb9023b9b93480cc0bf270fc7dae45d1ba7eae0744e74cf0dce286787f7a30b4aafbe85e7ff282ea71f29f3cc011c9ef05e626cf03b22 devscripts_2.18.1.tar.xz"