aboutsummaryrefslogtreecommitdiffstats
path: root/main/mksh/APKBUILD
blob: 95429580783b010433aec5f82dc1774499acfdbb (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
# Contributor: Eivind Uggedal <eivind@uggedal.com>
# Maintainer: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
pkgname=mksh
pkgver=54
_pkgver=R$pkgver
pkgrel=2
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"

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="d7a86b6c4b8b4ea91617b7f22caa36b3b2b403213e1577b75662cb5b1e353c9607051036161773a2d0b7c9b07351ea855d3494378a684391a1e61f923aefe757  mksh-R54.tgz"