wok-current annotate openscad/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | f1cfcaac93b6 |
children |
rev | line source |
---|---|
pascal@17321 | 1 # SliTaz package receipt. |
pascal@17321 | 2 |
pascal@17321 | 3 PACKAGE="openscad" |
pascal@17321 | 4 VERSION="2014.03" |
pascal@17321 | 5 CATEGORY="graphics" |
pascal@17321 | 6 SHORT_DESC="The Programmers Solid 3D CAD Modeller." |
pascal@17321 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17321 | 8 LICENSE="GPL2" |
pascal@17321 | 9 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
pascal@17321 | 10 WEB_SITE="http://www.openscad.org/" |
pascal@17321 | 11 WGET_URL="http://files.openscad.org//$TARBALL" |
pascal@17321 | 12 |
pascal@17321 | 13 DEPENDS="cgal gmp mpfr glew opencsg mesa libboost-program-options \ |
pascal@17321 | 14 libboost-filesystem libboost-thread libboost-regex libQtOpenGL \ |
mojo@19672 | 15 libQtCore libQtGui glib libboost-chrono" |
pascal@17321 | 16 BUILD_DEPENDS="cmake pkg-config flex Qt4-dev cgal-dev gmp-dev mpfr-dev \ |
pascal@17321 | 17 glib-dev glew-dev opencsg-dev eigen mesa-dev libboost-program-options-dev \ |
pascal@19771 | 18 libboost-filesystem-dev libboost-regex-dev libboost-thread-dev \ |
pascal@19814 | 19 libboost-graph-dev libboost-tr1-dev qmake" |
pascal@17321 | 20 |
pascal@24453 | 21 # What is the latest version available today? |
pascal@24453 | 22 current_version() |
pascal@24453 | 23 { |
pascal@24453 | 24 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24453 | 26 } |
pascal@24453 | 27 |
pascal@17321 | 28 # Rules to configure and make the package. |
pascal@17321 | 29 # |
pascal@17321 | 30 compile_rules() |
pascal@17321 | 31 { |
pascal@17321 | 32 ./scripts/check-dependencies.sh |
pascal@17321 | 33 qmake PREFIX="/usr" && |
pascal@17321 | 34 make && |
pascal@17321 | 35 make INSTALL_ROOT=$DESTDIR install |
pascal@17321 | 36 } |
pascal@17321 | 37 |
pascal@17321 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17321 | 39 genpkg_rules() |
pascal@17321 | 40 { |
pascal@17321 | 41 cp -a $install/* $fs |
pascal@17321 | 42 } |