void-packages/srcpkgs/checkbashisms/template

28 lines
813 B
Bash

# Template file for 'checkbashisms'
pkgname=checkbashisms
version=2.23.7
revision=1
depends="perl"
checkdepends="shunit2 perl"
short_desc="Debian script that checks for bash-isms"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://tracker.debian.org/pkg/devscripts"
changelog="https://salsa.debian.org/debian/devscripts/-/raw/master/debian/changelog"
distfiles="${DEBIAN_SITE}/main/d/devscripts/devscripts_${version}.tar.xz"
checksum=9ce9e5135472d8647e2ffb56655e00391e8e99aa7a4a8ae605cf0e1ffd9f3609
pre_install() {
vsed -i "s|###VERSION###|${version}|" scripts/checkbashisms.pl
}
do_check() {
./test/test_checkbashisms
}
do_install() {
vcompletion scripts/checkbashisms.bash_completion bash
vbin scripts/checkbashisms.pl checkbashisms
vman scripts/checkbashisms.1
}