wok-next annotate opencc/receipt @ rev 21470
updated totem-pl-parser (3.26.0 -> 3.26.5)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 13 08:02:17 2020 +0100 (2020-05-13) |
parents | a3c581bf52b8 |
children |
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" |
al@21020 | 9 WEB_SITE="http://byvoid.github.io/OpenCC/" |
al@21020 | 10 |
hipeng@10958 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20906 | 12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/opencc/$TARBALL" # FIXME |
hipeng@10958 | 13 |
al@21020 | 14 BUILD_DEPENDS="cmake gettext-dev" |
al@21020 | 15 SPLIT="$PACKAGE-tools $PACKAGE $PACKAGE-dev" |
pascal@15600 | 16 |
al@21020 | 17 compile_rules() { |
al@21020 | 18 mkdir build |
al@21020 | 19 cd build |
al@21020 | 20 cmake \ |
al@21020 | 21 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@21020 | 22 -DCMAKE_BUILD_TYPE=Release \ |
al@21020 | 23 -DENABLE_GETTEXT:BOOL=ON \ |
al@21020 | 24 .. && |
al@21020 | 25 make && |
al@21020 | 26 make DESTDIR=$install install |
hipeng@10958 | 27 } |
hipeng@10958 | 28 |
al@21020 | 29 genpkg_rules() { |
pascal@20179 | 30 case $PACKAGE in |
al@21020 | 31 opencc-tools) |
al@21020 | 32 copy usr/bin/ # only binaries |
al@21020 | 33 CAT="utilities|command line tools" |
al@21020 | 34 DEPENDS="opencc" |
al@21020 | 35 ;; |
al@21020 | 36 opencc) |
al@21020 | 37 copy @std @rm # all the rest |
al@21020 | 38 ;; |
al@21020 | 39 *-dev) |
al@21020 | 40 copy @dev |
al@21020 | 41 ;; |
pascal@20179 | 42 esac |
hipeng@10958 | 43 } |