wok-next diff libical/receipt @ rev 20457

Tiny edits
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 11:13:24 2018 +0200 (2018-03-02)
parents 8f447cf2eee5
children b1a1deb20f42
line diff
     1.1 --- a/libical/receipt	Sat Nov 09 20:47:29 2013 +0000
     1.2 +++ b/libical/receipt	Fri Mar 02 11:13:24 2018 +0200
     1.3 @@ -1,33 +1,42 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libical"
     1.8 -VERSION="0.44"
     1.9 +VERSION="2.0.0"
    1.10  CATEGORY="system-tools"
    1.11 -SHORT_DESC="Opensource ICalendar implementation"
    1.12 +SHORT_DESC="iCalendar library implementation in C"
    1.13  MAINTAINER="erjo@slitaz.org"
    1.14 -LICENSE="MPL LGPL"
    1.15 +LICENSE="MPL LGPL2.1"
    1.16 +WEB_SITE="https://github.com/libical"
    1.17 +
    1.18  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.19 -WEB_SITE="http://sourceforge.net/projects/freeassociation/"
    1.20 -WGET_URL="http://downloads.sourceforge.net/project/freeassociation/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"
    1.21 +WGET_URL="https://github.com/libical/libical/releases/download/v$VERSION/$TARBALL"
    1.22  
    1.23 -DEPENDS=""
    1.24 +BUILD_DEPENDS="cmake perl db-dev gobject-introspection-dev"
    1.25 +SPLIT="libical-dev"
    1.26  
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	cd $src
    1.31 -	./configure \
    1.32 -		--prefix=/usr \
    1.33 -		--infodir=/usr/share/info \
    1.34 -		--mandir=/usr/share/man \
    1.35 -		$CONFIGURE_ARGS &&
    1.36 -	make && make DESTDIR=$DESTDIR install
    1.37 +	# http://www.linuxfromscratch.org/blfs/view/stable/general/libical.html
    1.38 +	mkdir build &&
    1.39 +	cd build &&
    1.40 +	cmake \
    1.41 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.42 +		-DCMAKE_BUILD_TYPE=Release \
    1.43 +		-DSHARED_ONLY=yes \
    1.44 +		.. &&
    1.45 +	make && make install || return 1
    1.46 +
    1.47 +	docdir="$install/usr/share/doc/$PACKAGE-$VERSION"
    1.48 +	mkdir -p $docdir
    1.49 +	cp -r $src/doc/UsingLibical.txt $docdir
    1.50  }
    1.51  
    1.52  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.53  genpkg_rules()
    1.54  {
    1.55 -	mkdir -p $fs/usr/lib
    1.56 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.57 +	case $PACKAGE in
    1.58 +		libical) copy @std;;
    1.59 +		*-dev)   copy @dev;;
    1.60 +	esac
    1.61  }
    1.62 -