wok annotate doxygen/receipt @ rev 24433
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 18:42:31 2022 +0000 (2022-02-12) |
parents | b537f0bd32fb |
children | f1a6bc62bdf4 |
rev | line source |
---|---|
pascal@1508 | 1 # SliTaz package receipt. |
pascal@1508 | 2 |
pascal@1508 | 3 PACKAGE="doxygen" |
Hans-G?nter@22739 | 4 VERSION="1.8.17" |
pascal@1508 | 5 CATEGORY="development" |
Hans-G?nter@20851 | 6 TAGS="language documentation" |
pascal@1508 | 7 SHORT_DESC="Source code documentation generator tool." |
pascal@1508 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 9 LICENSE="GPL2" |
Hans-G?nter@20851 | 10 WEB_SITE="http://www.doxygen.nl/" |
Hans-G?nter@20851 | 11 |
pascal@1508 | 12 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
Hans-G?nter@20851 | 13 WGET_URL="${WEB_SITE}files/$TARBALL" |
jozee@4934 | 14 |
Hans-G?nter@22739 | 15 DEPENDS="gcc83-lib-base" |
Hans-G?nter@22739 | 16 BUILD_DEPENDS="bison cmake flex gcc83 python" |
pascal@1508 | 17 |
pascal@24433 | 18 # What is the latest version available today? |
pascal@24433 | 19 current_version() |
pascal@24433 | 20 { |
pascal@24433 | 21 wget -O - https://github.com/doxygen/doxygen/tags 2>/dev/null | \ |
pascal@24433 | 22 sed '/archive.*tar/!d;s|.*/Release_\(.*\).tar.*|\1|;s|_|.|g;q' |
pascal@24433 | 23 } |
pascal@24433 | 24 |
pascal@1508 | 25 # Rules to configure and make the package. |
pascal@1508 | 26 compile_rules() |
pascal@1508 | 27 { |
Hans-G?nter@22739 | 28 export CC=gcc-83 |
Hans-G?nter@22739 | 29 export CXX=g++-83 |
Hans-G?nter@22739 | 30 |
Hans-G?nter@20851 | 31 mkdir build |
Hans-G?nter@20851 | 32 cd build |
Hans-G?nter@20851 | 33 cmake -G "Unix Makefiles" .. && |
Hans-G?nter@20851 | 34 make -j 1 && |
pascal@15579 | 35 make DESTDIR=$DESTDIR install |
pascal@1508 | 36 } |
pascal@1508 | 37 |
pascal@1508 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1508 | 39 genpkg_rules() |
pascal@1508 | 40 { |
Hans-G?nter@20851 | 41 mkdir -p $fs/usr/bin |
Hans-G?nter@22739 | 42 cp -a $install/usr/local/bin/* $fs/usr/bin |
pascal@1508 | 43 } |