wok view libical/receipt @ rev 24819

libnsl: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 23 09:20:46 2022 +0000 (2022-03-23)
parents 5ea0ce1cecc0
children 7364ffdaaa60
line source
1 # SliTaz package receipt.
3 PACKAGE="libical"
4 VERSION="3.0.14"
5 CATEGORY="system-tools"
6 SHORT_DESC="Opensource ICalendar implementation."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MPL LGPL"
9 WEB_SITE="https://github.com/libical/libical/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="libxml2"
15 BUILD_DEPENDS="cmake libxml2-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir _build &&
27 cd _build &&
28 cmake .. \
29 -D ENABLE_GTK_DOC=OFF \
30 -D CMAKE_INSTALL_PREFIX=/usr &&
31 make &&
32 make install DESTDIR=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_files *.so*
39 }