mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-21 00:21:37 +01:00
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
# Contributor: Eivind Uggedal <eivind@uggedal.com>
|
|
# 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"
|