wok-next view cld2/receipt @ rev 20985

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Sep 29 16:54:07 2018 +0300 (2018-09-29)
parents 6a9bc040c7d2
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cld2"
4 VERSION="20150820"
5 COMMIT="b56fa78"
6 CATEGORY="text"
7 SHORT_DESC="Compact Language Detector 2"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="Apache2"
10 WEB_SITE="https://github.com/CLD2Owners/cld2"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/CLD2Owners/cld2/archive/$COMMIT.tar.gz"
15 SPLIT="cld2-dev"
17 compile_rules() {
18 cd internal
19 CXXFLAGS="-std=c++98 $CXXFLAGS" sh ./compile_libs.sh || return 1
21 cd $src
22 install -Dm755 internal/libcld2.so $install/usr/lib/libcld2.so
23 install -Dm755 internal/libcld2_full.so $install/usr/lib/libcld2_full.so
24 for header in internal/*.h public/*.h; do
25 install -Dm644 "$header" $install/usr/include/cld2/$header
26 done
27 cook_pick_docs LICENSE README.md
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 cld2) copy @std;;
33 *-dev) copy @dev;;
34 esac
35 }