aboutsummaryrefslogtreecommitdiffstats
path: root/main/mksh/APKBUILD
blob: 8fe88b01c501cd718b88b141cbc7c89f8b20b7e2 (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
# Contributor: Eivind Uggedal <eivind@uggedal.com>
# Maintainer: Sören Tempel <soeren+alpinelinux@soeren-tempel.net>
pkgname=mksh
pkgver=54
_pkgver=R$pkgver
pkgrel=1
pkgdesc="MirBSD KSH Shell"
url="https://www.mirbsd.org/mksh"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends=""
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 -c lto
}

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
}

md5sums="be0a6fb93b4a5f927bcc1893bb6692f8  mksh-R54.tgz"
sha256sums="8bce3837c386684aa7780f085f1a4dbd5e3e26fb5c528ee0d41ae29af7f39013  mksh-R54.tgz"
sha512sums="d7a86b6c4b8b4ea91617b7f22caa36b3b2b403213e1577b75662cb5b1e353c9607051036161773a2d0b7c9b07351ea855d3494378a684391a1e61f923aefe757  mksh-R54.tgz"