wok annotate tnylpo/receipt @ rev 24130

Add tnylpo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 18 14:47:15 2021 +0000 (2021-10-18)
parents
children fb22330086d8
rev   line source
pascal@24130 1 # SliTaz package receipt.
pascal@24130 2
pascal@24130 3 PACKAGE="tnylpo"
pascal@24130 4 VERSION="1.1.4"
pascal@24130 5 CATEGORY="misc"
pascal@24130 6 SHORT_DESC="Run CP/M-80 programs under Unix/Linux."
pascal@24130 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@24130 8 LICENSE="BSD"
pascal@24130 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24130 10 WEB_SITE="https://gitlab.com/gbrein/tnylpo"
pascal@24130 11 WGET_URL="$WEB_SITE/-/archive/$VERSION/$TARBALL"
pascal@24130 12
pascal@24130 13 DEPENDS="ncursesw"
pascal@24130 14 BUILD_DEPENDS="ncursesw-dev"
pascal@24130 15
pascal@24130 16 current_version()
pascal@24130 17 {
pascal@24130 18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24130 19 sed '/tar.gz/!d;s|.*/tnylpo-\(.*\).tar.gz".*|\1|;q'
pascal@24130 20 }
pascal@24130 21
pascal@24130 22 # Rules to configure and make the package.
pascal@24130 23 compile_rules()
pascal@24130 24 {
pascal@24130 25 make
pascal@24130 26 }
pascal@24130 27
pascal@24130 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@24130 29 genpkg_rules()
pascal@24130 30 {
pascal@24130 31 mkdir -p $fs/usr/bin $install/usr/share/man
pascal@24130 32 cp -a $src/tnylpo $fs/usr/bin
pascal@24130 33 cp -a $src/tnylpo-convert $fs/usr/bin
pascal@24130 34 cp -a $src/tnylpo*.1 $install/usr/share/man
pascal@24130 35 }