wok annotate opencc/receipt @ rev 19200
gucharmap-dev: fix packaging too
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jun 09 01:02:19 2016 +0300 (2016-06-09) |
parents | de49f29b101e |
children | eeba7ab1dffe |
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" |
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/" |
slaxemulator@10963 | 11 WGET_URL="http://opencc.googlecode.com/files/$TARBALL" |
hipeng@10958 | 12 |
pascal@15600 | 13 DEPENDS="" |
pascal@15600 | 14 BUILD_DEPENDS="cmake gettext" |
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 { |
hipeng@10958 | 30 mkdir -p $fs/usr/lib/ $fs/usr/share/ |
pascal@15600 | 31 cp -a $install/usr/lib/lib*.so.* $fs/usr/lib/ |
pascal@15600 | 32 cp -a $install/usr/share/opencc/ $fs/usr/share/ |
hipeng@10958 | 33 } |