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