void-packages/srcpkgs/opencc/template
Đoàn Trần Công Danh 7f9719f4b9 opencc: update to 1.1.1.
Build with CMAKE_BUILD_TYPE None, and python3
2020-09-06 17:46:53 +07:00

28 lines
764 B
Bash

# Template file for 'opencc'
pkgname=opencc
version=1.1.1
revision=1
wrksrc=OpenCC-ver.${version}
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=None -DENABLE_GTEST=ON"
hostmakedepends="python3"
short_desc="Library for Open Chinese Convert"
maintainer="Yuxuan Shui <yshuiv7@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/BYVoid/OpenCC/"
distfiles="https://github.com/BYVoid/OpenCC/archive/ver.${version}.tar.gz"
checksum=2d4987dc84275f252d47bc6d8c81b452f6a6e82caa26f284c854a8153ccf5933
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" opencc"
fi
opencc-devel_package() {
depends="opencc-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}