wok diff opencc/receipt @ rev 25062
Up foomatic-db-nonfree (20210824)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 07 10:29:31 2022 +0000 (2022-06-07) |
parents | 5ea0ce1cecc0 |
children | 7364ffdaaa60 |
line diff
1.1 --- a/opencc/receipt Tue Jun 08 08:46:05 2021 +0000 1.2 +++ b/opencc/receipt Tue Jun 07 10:29:31 2022 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="opencc" 1.7 -VERSION="1.0.5" 1.8 +VERSION="1.1.3" 1.9 CATEGORY="misc" 1.10 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion." 1.11 MAINTAINER="lufeng369@slitaz.org" 1.12 @@ -9,10 +9,10 @@ 1.13 WEB_SITE="https://github.com/BYVoid/OpenCC" 1.14 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WGET_URL="$WEB_SITE/archive/ver.$VERSION.tar.gz" 1.17 +WGET_URL="https://github.com/BYVoid/OpenCC/archive/ver.$VERSION.tar.gz" 1.18 1.19 -DEPENDS="" 1.20 -BUILD_DEPENDS="cmake gettext" 1.21 +DEPENDS="gcc83-lib-base" 1.22 +BUILD_DEPENDS="cmake gcc83 gettext" 1.23 1.24 current_version() 1.25 { 1.26 @@ -23,15 +23,17 @@ 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 - mkdir build 1.31 - cd build 1.32 - cmake $src \ 1.33 - -DCMAKE_INSTALL_PREFIX=/usr \ 1.34 - -DCMAKE_BUILD_TYPE=Release \ 1.35 - -DENABLE_GETTEXT:BOOL=ON || return 1 1.36 - cd $src 1.37 - make -C build || return 1 1.38 - make install -C build DESTDIR=$DESTDIR 1.39 + export CC=gcc-83 1.40 + export CXX=g++-83 1.41 + 1.42 + mkdir _build && 1.43 + cd _build && 1.44 + cmake .. \ 1.45 + -D CMAKE_INSTALL_PREFIX=/usr \ 1.46 + -D CMAKE_BUILD_TYPE=Release \ 1.47 + -D ENABLE_GETTEXT:BOOL=ON && 1.48 + make && 1.49 + make install DESTDIR=$DESTDIR 1.50 } 1.51 1.52 # Rules to gen a SliTaz package suitable for Tazpkg. 1.53 @@ -40,6 +42,6 @@ 1.54 mkdir -p $fs/usr/lib 1.55 mkdir -p $fs/usr/share 1.56 1.57 - cp -a $install/usr/lib/lib*.so.* $fs/usr/lib 1.58 - cp -a $install/usr/share/opencc $fs/usr/share 1.59 + cp -a $install/usr/lib/lib*.so* $fs/usr/lib 1.60 + cp -a $install/usr/share/opencc $fs/usr/share 1.61 }