wok-6.x annotate cmatrix/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | a89966b4677d |
children |
rev | line source |
---|---|
paul@5285 | 1 # SliTaz package receipt. |
paul@5285 | 2 |
paul@5285 | 3 PACKAGE="cmatrix" |
Hans-G?nter@24426 | 4 VERSION="2.0" |
paul@5285 | 5 CATEGORY="misc" |
paul@5285 | 6 SHORT_DESC="Matrix screensaver." |
paul@5285 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
Hans-G?nter@24426 | 9 WEB_SITE="https://www.asty.org/cmatrix/" |
Hans-G?nter@24426 | 10 |
paul@5285 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24426 | 12 WGET_URL="https://github.com/abishekvashok/$PACKAGE/archive/v$VERSION.tar.gz" |
paul@5285 | 13 |
pascal@15579 | 14 DEPENDS="ncurses" |
Hans-G?nter@24426 | 15 BUILD_DEPENDS="cmake ncurses-dev" |
pascal@15579 | 16 |
pascal@24427 | 17 # What is the latest version available today? |
pascal@24427 | 18 current_version() |
pascal@24427 | 19 { |
pascal@24427 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24427 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24427 | 22 } |
pascal@24427 | 23 |
paul@5285 | 24 # Rules to configure and make the package. |
paul@5285 | 25 compile_rules() |
paul@5285 | 26 { |
Hans-G?nter@24426 | 27 # 1.2a |
Hans-G?nter@24426 | 28 # export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@24426 | 29 |
Hans-G?nter@24426 | 30 mkdir _build && |
Hans-G?nter@24426 | 31 cd _build && |
Hans-G?nter@24426 | 32 cmake .. \ |
Hans-G?nter@24426 | 33 -D CMAKE_INSTALL_PREFIX=/usr && |
Hans-G?nter@24426 | 34 make && |
Hans-G?nter@24426 | 35 make DESTDIR=$DESTDIR install |
paul@5285 | 36 } |
paul@5285 | 37 |
paul@5285 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@5285 | 39 genpkg_rules() |
paul@5285 | 40 { |
Hans-G?nter@24426 | 41 cook_copy_folders bin |
paul@5285 | 42 } |