wok view ncurses-examples/receipt @ rev 25691

Up lynis (3.1.1), ncurses-examples (20211021)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 16 10:43:04 2024 +0000 (2 weeks ago)
parents d7522d21c4d3
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ncurses-examples"
4 VERSION="20211021"
5 CATEGORY="base-system"
6 SHORT_DESC="Ncurses test functions."
7 MAINTAINER="paul@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tgz"
9 LICENSE="MIT"
10 WEB_SITE="https://invisible-island.net/ncurses/ncurses-examples.html"
11 WGET_URL="https://invisible-mirror.net/archives/$PACKAGE/$TARBALL"
13 DEPENDS="ncurses perl"
14 BUILD_DEPENDS="ncurses-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/usr $fs
35 mkdir -p $install/usr/share/man $install/usr/share/doc
36 cp $src/*.6 $install/usr/share/man
37 cp $src/README $install/usr/share/doc
38 }