wok-6.x annotate sc-im/receipt @ rev 24500
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 19:01:32 2022 +0000 (2022-02-19) |
parents | f9e252411aa1 |
children | 59547e97954f |
rev | line source |
---|---|
paul@18415 | 1 # SliTaz package receipt. |
paul@18415 | 2 |
paul@18415 | 3 PACKAGE="sc-im" |
Hans-G?nter@24135 | 4 VERSION="0.8.2" |
paul@18415 | 5 CATEGORY="office" |
Hans-G?nter@20663 | 6 SHORT_DESC="Spreadsheet Calculator Improved" |
paul@18415 | 7 MAINTAINER="paul@slitaz.org" |
Hans-G?nter@24135 | 8 WEB_SITE="https://github.com/andmarti1424/sc-im" |
Hans-G?nter@24135 | 9 |
Hans-G?nter@24136 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24136 | 11 #WGET_URL="git|git://github.com/andmarti1424/sc-im" |
Hans-G?nter@24136 | 12 # Do not use git, because that might fetch an unreleased version |
Hans-G?nter@24136 | 13 # as happened with 0.8.3 in place of 0.8.2 |
Hans-G?nter@24136 | 14 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
paul@18415 | 15 |
al@19542 | 16 DEPENDS="ncursesw" |
Hans-G?nter@24136 | 17 BUILD_DEPENDS="bison ncursesw-dev" |
paul@18415 | 18 |
pascal@24139 | 19 current_version() |
pascal@24139 | 20 { |
pascal@24139 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24139 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24139 | 23 } |
pascal@24139 | 24 |
paul@18415 | 25 # Rules to configure and make the package. |
paul@18415 | 26 compile_rules() |
paul@18415 | 27 { |
Hans-G?nter@24135 | 28 export CFLAGS="$CFLAGS -std=c99" |
paul@18415 | 29 cd $src/src |
Hans-G?nter@20665 | 30 # Do not override name = scim in Makefile, |
Hans-G?nter@20665 | 31 # in order to avoid conflicts with the package scim |
Hans-G?nter@24135 | 32 make -j1 prefix=/usr && |
Hans-G?nter@24135 | 33 make install prefix=/usr |
paul@18415 | 34 } |
Hans-G?nter@24135 | 35 |
paul@18415 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@18415 | 37 genpkg_rules() |
paul@18415 | 38 { |
Hans-G?nter@20665 | 39 # Program name changed to sc-im |
Hans-G?nter@20665 | 40 cook_copy_files sc-im sc-im_help |
paul@18415 | 41 } |