wok view speedcrunch/receipt @ rev 25599
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 13:38:12 2023 +0000 (16 months ago) |
parents | fecd32b7c03a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="speedcrunch"
4 #GITHASH="7a34226332a526f0d77f02b17b87f165362a206d"
5 #VERSION=${GITHASH:0:7}
6 VERSION="0.11"
7 CATEGORY="utilities"
8 SHORT_DESC="A fast, high precision and powerful desktop calculator."
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="GPL2"
11 WEB_SITE="https://www.speedcrunch.org/"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/speedcrunch/SpeedCrunch/archive/$VERSION.tar.gz"
16 DEPENDS="glibc-base libQtGui libQtXml"
17 BUILD_DEPENDS="cmake Qt4-dev qmake"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/speedcrunch/SpeedCrunch/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir ./build
30 cd ./build
31 cmake -DCMAKE_INSTALL_PREFIX=/usr ../src &&
32 make &&
33 lrelease ../src/speedcrunch.pro &&
34 make install
36 # proper sub-category
37 sed -i 's|^Categories.*$|&;Calculator;|' \
38 $install/usr/share/applications/speedcrunch.desktop
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs
45 }