wok-6.x annotate opencc/receipt @ rev 15497
Up: firefox-langpack-pt_PT (17.0.10esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 17 16:30:02 2013 +0100 (2013-11-17) |
parents | 3af70ef3a7ac |
children | de49f29b101e |
rev | line source |
---|---|
hipeng@10958 | 1 # SliTaz package receipt. |
hipeng@10958 | 2 |
hipeng@10958 | 3 PACKAGE="opencc" |
hipeng@10958 | 4 VERSION="0.2.0" |
slaxemulator@10962 | 5 CATEGORY="misc" |
hipeng@10958 | 6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion" |
hipeng@10958 | 7 MAINTAINER="liupeng <hipeng@yahoo.com>" |
hipeng@10958 | 8 DEPENDS="" |
hipeng@10958 | 9 BUILD_DEPENDS="cmake gettext" |
hipeng@10958 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
hipeng@10958 | 11 WEB_SITE="http://code.google.com/p/opencc/" |
slaxemulator@10963 | 12 WGET_URL="http://opencc.googlecode.com/files/$TARBALL" |
hipeng@10958 | 13 |
hipeng@10958 | 14 # Rules to configure and make the package. |
hipeng@10958 | 15 compile_rules() |
hipeng@10958 | 16 { |
slaxemulator@10962 | 17 mkdir -p $src/build |
slaxemulator@10962 | 18 cd $src/build |
slaxemulator@10962 | 19 cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1 |
hipeng@10958 | 20 cd $src |
hipeng@10958 | 21 make -C build || return 1 |
slaxemulator@10962 | 22 make install -C build DESTDIR=$DESTDIR |
hipeng@10958 | 23 } |
hipeng@10958 | 24 |
hipeng@10958 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@10958 | 26 genpkg_rules() |
hipeng@10958 | 27 { |
hipeng@10958 | 28 mkdir -p $fs/usr/lib/ $fs/usr/share/ |
hipeng@10958 | 29 cp -a $_pkg/usr/lib/lib*.so.* $fs/usr/lib/ |
hipeng@10958 | 30 cp -a $_pkg/usr/share/opencc/ $fs/usr/share/ |
hipeng@10958 | 31 } |