wok-current diff opencc/receipt @ rev 23805
xine-lib: update suggested
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 24 07:34:28 2020 +0000 (2020-05-24) |
parents | eeba7ab1dffe |
children | 5ea0ce1cecc0 |
line diff
1.1 --- a/opencc/receipt Thu Jan 24 18:16:34 2019 +0100 1.2 +++ b/opencc/receipt Sun May 24 07:34:28 2020 +0000 1.3 @@ -1,14 +1,15 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="opencc" 1.7 -VERSION="0.2.0" 1.8 +VERSION="1.0.5" 1.9 CATEGORY="misc" 1.10 -SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion" 1.11 +SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion." 1.12 MAINTAINER="lufeng369@slitaz.org" 1.13 LICENSE="Apache" 1.14 +WEB_SITE="https://github.com/BYVoid/OpenCC" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://byvoid.github.io/OpenCC/" 1.18 -WGET_URL="http://opencc.googlecode.com/files/$TARBALL" 1.19 +WGET_URL="$WEB_SITE/archive/ver.$VERSION.tar.gz" 1.20 1.21 DEPENDS="" 1.22 BUILD_DEPENDS="cmake gettext" 1.23 @@ -16,10 +17,13 @@ 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 - mkdir -p $src/build 1.28 - cd $src/build 1.29 - cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1 1.30 - cd $src 1.31 + mkdir build 1.32 + cd build 1.33 + cmake $src \ 1.34 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.35 + -DCMAKE_BUILD_TYPE=Release \ 1.36 + -DENABLE_GETTEXT:BOOL=ON || return 1 1.37 + cd $src 1.38 make -C build || return 1 1.39 make install -C build DESTDIR=$DESTDIR 1.40 } 1.41 @@ -27,7 +31,9 @@ 1.42 # Rules to gen a SliTaz package suitable for Tazpkg. 1.43 genpkg_rules() 1.44 { 1.45 - mkdir -p $fs/usr/lib/ $fs/usr/share/ 1.46 - cp -a $install/usr/lib/lib*.so.* $fs/usr/lib/ 1.47 - cp -a $install/usr/share/opencc/ $fs/usr/share/ 1.48 + mkdir -p $fs/usr/lib 1.49 + mkdir -p $fs/usr/share 1.50 + 1.51 + cp -a $install/usr/lib/lib*.so.* $fs/usr/lib 1.52 + cp -a $install/usr/share/opencc $fs/usr/share 1.53 }