diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-03-26 22:26:10 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-03-26 22:28:22 +0200 |
commit | ff3c801a3b95a9b6470473e92ff31b49053f7a78 (patch) | |
tree | abce5302361e724e4e6e5d2c6e6ae90ccaf79f51 /main | |
parent | 17f250dd159dbb6a8c5abf794532b434c0e7ca08 (diff) | |
download | aports-ff3c801a3b95a9b6470473e92ff31b49053f7a78.tar.bz2 aports-ff3c801a3b95a9b6470473e92ff31b49053f7a78.tar.xz |
main/mksh: add a check function
Also disable LTO since one test doesn't pass when building mksh with
LTO. This might be a gcc bug...
Diffstat (limited to 'main')
-rw-r--r-- | main/mksh/APKBUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/main/mksh/APKBUILD b/main/mksh/APKBUILD index 8fe88b01c5..b8e16fe361 100644 --- a/main/mksh/APKBUILD +++ b/main/mksh/APKBUILD @@ -3,7 +3,7 @@ pkgname=mksh pkgver=54 _pkgver=R$pkgver -pkgrel=1 +pkgrel=2 pkgdesc="MirBSD KSH Shell" url="https://www.mirbsd.org/mksh" arch="all" @@ -14,20 +14,23 @@ 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" -_builddir="$srcdir/$pkgname" build() { - cd "$_builddir" - sh Build.sh -r -c lto + cd "$builddir" + sh Build.sh -r +} + +check() { + cd "$builddir" + ./test.sh -v -f } package() { - cd "$_builddir" + 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" |