27 lines
704 B
Bash
27 lines
704 B
Bash
# Template file for 'opencc'
|
|
pkgname=opencc
|
|
version=1.0.5
|
|
revision=2
|
|
wrksrc=OpenCC-ver.${version}
|
|
hostmakedepends="python"
|
|
build_style=cmake
|
|
short_desc="Library for Open Chinese Convert"
|
|
maintainer="Yuxuan Shui <yshuiv7@gmail.com>"
|
|
license="Apache-2.0"
|
|
distfiles="https://github.com/BYVoid/OpenCC/archive/ver.${version}.tar.gz"
|
|
homepage="https://github.com/BYVoid/OpenCC/"
|
|
checksum=1ce1649ba280cfc88bb76e740be5f54b29a9c034400c97a3ae211c37d7030705
|
|
|
|
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"
|
|
}
|
|
}
|