wok-next annotate libical/receipt @ rev 20565
uemacs: create $install tree
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 10 10:17:15 2018 +0200 (2018-04-10) |
parents | 8f447cf2eee5 |
children | b1a1deb20f42 |
rev | line source |
---|---|
al@19850 | 1 # SliTaz package receipt v2. |
erjo@4741 | 2 |
erjo@4741 | 3 PACKAGE="libical" |
al@19850 | 4 VERSION="2.0.0" |
erjo@4741 | 5 CATEGORY="system-tools" |
al@19850 | 6 SHORT_DESC="iCalendar library implementation in C" |
erjo@4741 | 7 MAINTAINER="erjo@slitaz.org" |
al@19850 | 8 LICENSE="MPL LGPL2.1" |
al@19850 | 9 WEB_SITE="https://github.com/libical" |
al@19850 | 10 |
erjo@4741 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19850 | 12 WGET_URL="https://github.com/libical/libical/releases/download/v$VERSION/$TARBALL" |
erjo@4741 | 13 |
al@19850 | 14 BUILD_DEPENDS="cmake perl db-dev gobject-introspection-dev" |
al@19850 | 15 SPLIT="libical-dev" |
pascal@15473 | 16 |
erjo@4741 | 17 # Rules to configure and make the package. |
erjo@4741 | 18 compile_rules() |
erjo@4741 | 19 { |
al@19850 | 20 # http://www.linuxfromscratch.org/blfs/view/stable/general/libical.html |
al@19850 | 21 mkdir build && |
al@19850 | 22 cd build && |
al@19850 | 23 cmake \ |
al@19850 | 24 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@19850 | 25 -DCMAKE_BUILD_TYPE=Release \ |
al@19850 | 26 -DSHARED_ONLY=yes \ |
al@19850 | 27 .. && |
al@19850 | 28 make && make install || return 1 |
al@19850 | 29 |
al@19850 | 30 docdir="$install/usr/share/doc/$PACKAGE-$VERSION" |
al@19850 | 31 mkdir -p $docdir |
al@19850 | 32 cp -r $src/doc/UsingLibical.txt $docdir |
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 { |
al@19850 | 38 case $PACKAGE in |
al@19850 | 39 libical) copy @std;; |
al@19850 | 40 *-dev) copy @dev;; |
al@19850 | 41 esac |
erjo@4741 | 42 } |