blob: 253a7d71dd2d91d354388db9788b123405307e51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=checkbashisms
pkgver=2.20.4
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() {
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() {
install -D -m755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -D -m755 "$pkgname".1 "$pkgdir/usr/share/man/man1/$pkgname".1
}
sha512sums="49e9ae38ca3682f399a17f2108a7ee15198dc955d8c7c4c1b043456c19cb35b47b6116de9a2cfaccbdd7560e79426ca0953674e5a89ac226d21af2c1cf847e5c devscripts_2.20.4.tar.xz"
|