wok view ncurses-examples/receipt @ rev 25104
Up klavaro (1.2.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 08:45:04 2022 +0000 (2022-06-22) |
parents | 95dd63067f99 |
children | 120dd6158093 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ncurses-examples"
4 VERSION="20180127"
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 }