wok-current annotate opencc/receipt @ rev 25705
Up miss usbip, usbip-dev to 5.10.217
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 20 14:49:05 2024 +0000 (7 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
hipeng@10958 | 1 # SliTaz package receipt. |
hipeng@10958 | 2 |
hipeng@10958 | 3 PACKAGE="opencc" |
Hans-G?nter@25014 | 4 VERSION="1.1.3" |
slaxemulator@10962 | 5 CATEGORY="misc" |
Hans-G?nter@23260 | 6 SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion." |
pascal@16047 | 7 MAINTAINER="lufeng369@slitaz.org" |
pascal@15600 | 8 LICENSE="Apache" |
Hans-G?nter@23260 | 9 WEB_SITE="https://github.com/BYVoid/OpenCC" |
Hans-G?nter@23260 | 10 |
hipeng@10958 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25014 | 12 WGET_URL="https://github.com/BYVoid/OpenCC/archive/ver.$VERSION.tar.gz" |
hipeng@10958 | 13 |
Hans-G?nter@25014 | 14 DEPENDS="gcc83-lib-base" |
Hans-G?nter@25014 | 15 BUILD_DEPENDS="cmake gcc83 gettext" |
pascal@15600 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/ver.\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
hipeng@10958 | 23 # Rules to configure and make the package. |
hipeng@10958 | 24 compile_rules() |
hipeng@10958 | 25 { |
Hans-G?nter@25014 | 26 export CC=gcc-83 |
Hans-G?nter@25014 | 27 export CXX=g++-83 |
Hans-G?nter@25014 | 28 |
Hans-G?nter@25014 | 29 mkdir _build && |
Hans-G?nter@25014 | 30 cd _build && |
Hans-G?nter@25014 | 31 cmake .. \ |
Hans-G?nter@25014 | 32 -D CMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@25014 | 33 -D CMAKE_BUILD_TYPE=Release \ |
Hans-G?nter@25014 | 34 -D ENABLE_GETTEXT:BOOL=ON && |
Hans-G?nter@25014 | 35 make && |
Hans-G?nter@25014 | 36 make install DESTDIR=$DESTDIR |
hipeng@10958 | 37 } |
hipeng@10958 | 38 |
hipeng@10958 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
hipeng@10958 | 40 genpkg_rules() |
hipeng@10958 | 41 { |
Hans-G?nter@23260 | 42 mkdir -p $fs/usr/lib |
Hans-G?nter@23260 | 43 mkdir -p $fs/usr/share |
Hans-G?nter@23260 | 44 |
Hans-G?nter@25014 | 45 cp -a $install/usr/lib/lib*.so* $fs/usr/lib |
Hans-G?nter@25014 | 46 cp -a $install/usr/share/opencc $fs/usr/share |
hipeng@10958 | 47 } |