mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-02 15:21:43 +01:00
70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=debian-devscripts
|
|
pkgver=2.25.15
|
|
pkgrel=0
|
|
pkgdesc="Debian developer scripts"
|
|
url="https://tracker.debian.org/pkg/devscripts"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
checkdepends="perl"
|
|
# checkbashisms is the common accepted name, but prefix for rest
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
checkbashisms
|
|
$pkgname-hardening-check:harden
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://salsa.debian.org/debian/devscripts/-/archive/v$pkgver/devscripts-v$pkgver.tar.gz"
|
|
builddir="$srcdir/devscripts-v$pkgver/scripts"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -i "s/###VERSION###/$pkgver/" checkbashisms.pl
|
|
|
|
mv checkbashisms.pl checkbashisms
|
|
mv hardening-check.pl hardening-check
|
|
}
|
|
|
|
check() {
|
|
printf '#!/bin/sh\necho "hello world"\n' > ./testfile
|
|
perl ./checkbashisms --version
|
|
perl ./checkbashisms ./testfile
|
|
}
|
|
|
|
package() {
|
|
depends="
|
|
checkbashisms=$pkgver-r$pkgrel
|
|
$pkgname-hardening-check=$pkgver-r$pkgrel
|
|
"
|
|
|
|
# only these useful for now
|
|
install -Dm755 -t "$pkgdir"/usr/bin/ \
|
|
checkbashisms \
|
|
hardening-check
|
|
|
|
install -Dm644 checkbashisms.1 \
|
|
-t "$pkgdir"/usr/share/man/man1/
|
|
install -Dm644 checkbashisms.bash_completion \
|
|
"$pkgdir"/usr/share/bash-completion/completions/checkbashisms
|
|
}
|
|
|
|
checkbashisms() {
|
|
pkgdesc="$pkgdesc (checkbashisms)"
|
|
depends="perl"
|
|
|
|
amove usr/bin/checkbashisms
|
|
}
|
|
|
|
harden() {
|
|
pkgdesc="$pkgdesc (hardening-check)"
|
|
depends="perl"
|
|
|
|
amove usr/bin/hardening-check
|
|
}
|
|
|
|
sha512sums="
|
|
e75479568dd8e8b4363c6bf142aaee518e806ee1dad78b1a0fd7a90c4632e1424af1729bdc6fb778972a0450fe5c39965d5bb4719ad7b02b2c2d6ec6a3b3f022 debian-devscripts-2.25.15.tar.gz
|
|
"
|