wok-next annotate tinyxml2/receipt @ rev 21119
libarchive: depends on libzstd
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 14 03:39:08 2019 +0200 (2019-01-14) |
parents | |
children |
rev | line source |
---|---|
al@21015 | 1 # SliTaz package receipt v2. |
al@21015 | 2 |
al@21015 | 3 PACKAGE="tinyxml2" |
al@21015 | 4 VERSION="6.2.0" |
al@21015 | 5 CATEGORY="system-tools" |
al@21015 | 6 SHORT_DESC="Simple XML parser made for easy integration" |
al@21015 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@21015 | 8 LICENSE="GPL2" |
al@21015 | 9 WEB_SITE="http://www.grinninglizard.com/tinyxml2/" |
al@21015 | 10 |
al@21015 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@21015 | 12 WGET_URL="https://github.com/leethomason/tinyxml2/archive/$VERSION.tar.gz" |
al@21015 | 13 |
al@21015 | 14 BUILD_DEPENDS="cmake ninja" |
al@21015 | 15 SPLIT="$PACKAGE-dev" |
al@21015 | 16 |
al@21015 | 17 compile_rules() { |
al@21015 | 18 mkdir build |
al@21015 | 19 cd build |
al@21015 | 20 cmake \ |
al@21015 | 21 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@21015 | 22 -DCMAKE_INSTALL_LIBDIR=lib \ |
al@21015 | 23 -DCMAKE_BUILD_TYPE=Release \ |
al@21015 | 24 -G Ninja \ |
al@21015 | 25 .. && |
al@21015 | 26 ninja && |
al@21015 | 27 ninja install || return 1 |
al@21015 | 28 |
al@21015 | 29 cook_pick_docs $src/docs/* |
al@21015 | 30 } |
al@21015 | 31 |
al@21015 | 32 genpkg_rules() { |
al@21015 | 33 case $PACKAGE in |
al@21015 | 34 tinyxml2) copy @std;; |
al@21015 | 35 *-dev) copy @dev;; |
al@21015 | 36 esac |
al@21015 | 37 } |
al@21015 | 38 |