wok-current annotate ncurses-examples/receipt @ rev 24561
updated fping (4.2 -> 5.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 16:30:10 2022 +0100 (2022-02-25) |
parents | 95dd63067f99 |
children | bf7fc7b1447c |
rev | line source |
---|---|
paul@17154 | 1 # SliTaz package receipt. |
paul@17154 | 2 |
paul@17154 | 3 PACKAGE="ncurses-examples" |
pascal@21531 | 4 VERSION="20180127" |
paul@17154 | 5 CATEGORY="base-system" |
paul@17154 | 6 SHORT_DESC="Ncurses test functions." |
paul@17154 | 7 MAINTAINER="paul@slitaz.org" |
pascal@21531 | 8 TARBALL="$PACKAGE-$VERSION.tgz" |
paul@17154 | 9 LICENSE="MIT" |
pascal@20669 | 10 WEB_SITE="https://invisible-island.net/ncurses/ncurses-examples.html" |
pascal@21531 | 11 WGET_URL="https://invisible-mirror.net/archives/$PACKAGE/$TARBALL" |
paul@17154 | 12 |
pascal@21542 | 13 DEPENDS="ncurses perl" |
paul@17154 | 14 BUILD_DEPENDS="ncurses-dev" |
paul@17154 | 15 |
pascal@24500 | 16 # What is the latest version available today? |
pascal@24500 | 17 current_version() |
pascal@24500 | 18 { |
pascal@24500 | 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24500 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q |
pascal@24500 | 21 } |
pascal@24500 | 22 |
paul@17154 | 23 # Rules to configure and make the package. |
paul@17154 | 24 compile_rules() |
paul@17154 | 25 { |
paul@17154 | 26 ./configure \ |
paul@17154 | 27 $CONFIGURE_ARGS && |
paul@17154 | 28 make && make install |
paul@17154 | 29 } |
paul@17154 | 30 |
paul@17154 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@17154 | 32 genpkg_rules() |
paul@17154 | 33 { |
pascal@21542 | 34 cp -a $install/usr $fs |
pascal@21542 | 35 mkdir -p $install/usr/share/man $install/usr/share/doc |
pascal@21542 | 36 cp $src/*.6 $install/usr/share/man |
pascal@21542 | 37 cp $src/README $install/usr/share/doc |
paul@17154 | 38 } |