diff --git a/Plantillas/oksh-static/template b/Plantillas/oksh-static/template index bed67d4..00314bd 100644 --- a/Plantillas/oksh-static/template +++ b/Plantillas/oksh-static/template @@ -1,15 +1,15 @@ # Template file for 'oksh' pkgname=oksh -version=7.0 +version=7.1 revision=2 build_style=gnu-configure -makedepends="ncurses-devel" +hostmakedepends="pkgconf" short_desc="Portable OpenBSD ksh, based on the Public Domain Korn Shell" -maintainer="Tuxliban Torvalds " +maintainer="O. Sánchez " license="Public Domain" homepage="https://github.com/ibara/oksh" -distfiles="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz" -checksum=21d5891f38ffea3a5d1aa8c494f0a5579c93778535e0a92275b102dec3221da1 +distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz" +checksum=9dc0b0578d9d64d10c834f9757ca11f526b562bc5454da64b2cb270122f52064 register_shell="/bin/oksh" alternatives=" @@ -18,13 +18,19 @@ alternatives=" sh:sh:/usr/bin/oksh sh:sh.1:/usr/share/man/man1/oksh.1 " -build_options="static" do_configure() { - if [ "$build_option_static" ]; then - ./configure\ - --prefix=/usr\ - --enable-static\ - --enable-lto - fi + export PKG_CONFIG=/usr/bin/pkgconf + ./configure \ + --prefix=/usr \ + --enable-lto \ + --enable-small \ + --enable-static +} + +post_install() { + vlicense LEGAL + + vman ksh.1 ${DESTDIR}/usr/share/man/man1/oksh.1 + vman sh.1 ${DESTDIR}/usr/share/man/man1/oksh-sh.1 }