# Tanım: The MirBSD Korn Betik Konsolu ve Dili, Ksh gelişimiş hali
# URL: https://www.mirbsd.org/mksh.htm
# Paketçi: milisarge
# Gerekler: musl
# Grup: sistem

isim=mksh-static
surum=56.c
devir=1
kaynak=(https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R56c.tgz
		https://www.mirbsd.org/TaC-mksh.txt)

derle() {
  cd "$SRC/mksh"
  CC="musl-gcc" LDFLAGS="-s -static" sh Build.sh -r
  install -D -m 755 mksh "$PKG/usr/bin/mksh"
  install -D -m 644 mksh.1 "$PKG/usr/share/man/man1/mksh.1"
  install -D -m 644 dot.mkshrc "$PKG/etc/skel/.mkshrc"
  install -D -m 644 "$SRC/TaC-mksh.txt" "$PKG/usr/share/licenses/mksh/TaC-mksh.txt"
}
