wok-next annotate opencc/receipt @ rev 20766
childsplay: up (3.3); tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 04:36:32 2018 +0300 (2018-06-06) |
parents | 66ea853c51e4 |
children | a3c581bf52b8 |
rev | line source |
---|---|
pascal@20179 | 1 # SliTaz package receipt v2. |
hipeng@10958 | 2 |
hipeng@10958 | 3 PACKAGE="opencc" |
pascal@20179 | 4 VERSION="0.4.3" |
slaxemulator@10962 | 5 CATEGORY="misc" |
hipeng@10958 | 6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion" |
pascal@16047 | 7 MAINTAINER="lufeng369@slitaz.org" |
pascal@15600 | 8 LICENSE="Apache" |
hipeng@10958 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
hipeng@10958 | 10 WEB_SITE="http://code.google.com/p/opencc/" |
pascal@20180 | 11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/opencc/$TARBALL" |
hipeng@10958 | 12 |
pascal@15600 | 13 BUILD_DEPENDS="cmake gettext" |
al@20207 | 14 SPLIT="opencc-tools opencc opencc-dev" |
pascal@15600 | 15 |
hipeng@10958 | 16 # Rules to configure and make the package. |
hipeng@10958 | 17 compile_rules() |
hipeng@10958 | 18 { |
slaxemulator@10962 | 19 mkdir -p $src/build |
slaxemulator@10962 | 20 cd $src/build |
slaxemulator@10962 | 21 cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1 |
hipeng@10958 | 22 cd $src |
hipeng@10958 | 23 make -C build || return 1 |
slaxemulator@10962 | 24 make install -C build DESTDIR=$DESTDIR |
hipeng@10958 | 25 } |
hipeng@10958 | 26 |
hipeng@10958 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@10958 | 28 genpkg_rules() |
hipeng@10958 | 29 { |
pascal@20179 | 30 case $PACKAGE in |
al@20207 | 31 opencc-tools) |
al@20207 | 32 CAT="utilities|command line tools" |
al@20207 | 33 DEPENDS="opencc" |
al@20207 | 34 copy usr/bin/ # only binaries |
al@20207 | 35 ;; |
pascal@20179 | 36 opencc) |
al@20207 | 37 copy @std @rm # all the rest |
pascal@20179 | 38 ;; |
pascal@20179 | 39 opencc-dev) |
al@20207 | 40 copy @dev |
pascal@20179 | 41 ;; |
pascal@20179 | 42 esac |
hipeng@10958 | 43 } |