33 lines
554 B
Bash
33 lines
554 B
Bash
pkgver=59c
|
|
pkgname=mksh
|
|
deps="musl"
|
|
bad=""
|
|
ext="doc"
|
|
|
|
fetch() {
|
|
curl http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R59c.tgz -o $pkgname-$pkgver.tar.gz
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
CPPFLAGS="-DMKSH_BINSHPOSIX" sh Build.sh -L
|
|
sh Build.sh
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
install -d $pkgdir/bin
|
|
install -Dm755 ./mksh $pkgdir/bin
|
|
install -Dm755 ./lksh $pkgdir/bin
|
|
ln -sr $pkgdir/bin/mksh $pkgdir/bin/bash
|
|
ln -sr $pkgdir/bin/lksh $pkgdir/bin/sh
|
|
}
|
|
|
|
backup() {
|
|
return
|
|
}
|
|
|
|
license() {
|
|
curl http://www.mirbsd.org/TaC-mksh.txt
|
|
}
|