wok-6.x annotate libical/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | da267e2be9e1 |
children | e4556f37511f |
rev | line source |
---|---|
erjo@4741 | 1 # SliTaz package receipt. |
erjo@4741 | 2 |
erjo@4741 | 3 PACKAGE="libical" |
Hans-G?nter@23075 | 4 VERSION="3.0.8" |
erjo@4741 | 5 CATEGORY="system-tools" |
Hans-G?nter@21237 | 6 SHORT_DESC="Opensource ICalendar implementation." |
erjo@4741 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15473 | 8 LICENSE="MPL LGPL" |
Hans-G?nter@21237 | 9 WEB_SITE="https://github.com/libical/libical/" |
Hans-G?nter@21237 | 10 |
erjo@4741 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21237 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL" |
erjo@4741 | 13 |
pascal@15473 | 14 DEPENDS="" |
Hans-G?nter@21237 | 15 BUILD_DEPENDS="cmake" |
pascal@15473 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
erjo@4741 | 23 # Rules to configure and make the package. |
erjo@4741 | 24 compile_rules() |
erjo@4741 | 25 { |
Hans-G?nter@21237 | 26 mkdir build |
Hans-G?nter@21237 | 27 cd build |
Hans-G?nter@21237 | 28 cmake .. \ |
Hans-G?nter@23075 | 29 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@23075 | 30 -DENABLE_GTK_DOC=OFF && |
Hans-G?nter@21237 | 31 make -j 1 && |
Hans-G?nter@21237 | 32 make DESTDIR=$DESTDIR install |
erjo@4741 | 33 } |
erjo@4741 | 34 |
erjo@4741 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4741 | 36 genpkg_rules() |
erjo@4741 | 37 { |
erjo@4741 | 38 mkdir -p $fs/usr/lib |
Hans-G?nter@23075 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
erjo@4741 | 40 } |