blob: b245246936aa1848c2c6c6ff151083558823d85b (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Eivind Uggedal <eu@eju.no>
# Maintainer: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
pkgname=mksh
pkgver=57
_pkgver=R$pkgver
pkgrel=0
pkgdesc="MirBSD KSH Shell"
url="https://www.mirbsd.org/mksh"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends=""
checkdepends="perl"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
subpackages="$pkgname-doc"
source="https://www.mirbsd.org/MirOS/dist/mir/$pkgname/$pkgname-$_pkgver.tgz"
builddir="$srcdir/$pkgname"
prepare() {
default_prepare
# This test case checks if a controlling tty is not present when
# `-C regress:no-ctty` has been passed. However, a controlling
# tty might be present when building this APKBUILD locally but
# isn't present on the builder. To make sure the tests pass both
# locally and on the builders we remove this test case.
sed -i "$builddir"/check.t -e '/^name: selftest-tty-absent$/,/^---$/d'
}
build() {
cd "$builddir"
sh Build.sh -r
}
check() {
cd "$builddir"
./test.sh -v -f -C regress:no-ctty
}
package() {
cd "$builddir"
install -Dm755 mksh "$pkgdir"/bin/mksh
install -Dm644 mksh.1 "$pkgdir"/usr/share/man/man1/mksh.1
install -Dm644 dot.mkshrc "$pkgdir"/usr/share/doc/mksh/dot.mkshrc
}
sha512sums="7d7fa557c17da4f1f62f82877a136439efb6d4f9fde52b2df39214db09868982e756df6e4fe83498f9013cbcf3252dc383b00ddfafaa4c9f143ffded7cd255b3 mksh-R57.tgz"
|