libpinyin: split libzhuyin

This commit is contained in:
Đoàn Trần Công Danh 2021-03-25 20:18:25 +07:00 committed by Đoàn Trần Công Danh
parent 47b573af07
commit c6cffb9de6
7 changed files with 59 additions and 9 deletions

View file

@ -3536,6 +3536,7 @@ libcaf_openssl.so.0.18.0 zeek-4.0.0_1
libbinpac.so.0 zeek-3.2.4_2
libllhttp.so.1 llhttp-1.0.1_1
libpinyin.so.13 libpinyin-2.2.1_1
libzhuyin.so.13 libzhuyin-2.6.0_3
libuhd.so.4.0.0 uhd-4.0.0.0_1
libeditline.so.1 editline-1.16.0_1
libgnuradio-rds.so.1 gnuradio-rds-3.8.0_1

1
srcpkgs/libpinyin-common Symbolic link
View file

@ -0,0 +1 @@
libpinyin

View file

@ -0,0 +1 @@
libpinyin

1
srcpkgs/libpinyin-utils Symbolic link
View file

@ -0,0 +1 @@
libpinyin

View file

@ -1,12 +1,13 @@
# Template file for 'libpinyin'
pkgname=libpinyin
version=2.6.0
revision=2
revision=3
build_style=gnu-configure
configure_args="--enable-libzhuyin"
hostmakedepends="intltool libtool pkg-config autoconf-archive autoconf automake"
makedepends="db-devel libglib-devel"
short_desc="Support library for PinYin and ZhuYin (Bopofomo)"
depends="libpinyin-common>=${version}_${revision}"
short_desc="Support library for PinYin"
maintainer="Ben Sung Hsu <pobetiger+github@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/libpinyin/libpinyin"
@ -26,13 +27,56 @@ pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
libpinyin-devel_package() {
depends="libglib-devel libpinyin-${version}_${revision}"
short_desc+=" - development files"
libpinyin-common_package() {
short_desc="Common files for libpinyin and libzhuyin"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
vmove usr/lib/libpinyin
}
}
libzhuyin_package() {
short_desc="${short_desc/PinYin/ZhuYin}"
depends="libpinyin-common>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/libzhuyin.so.*"
}
}
libpinyin-utils_package() {
short_desc="Support utilities for libpinyin and libzhuyin"
pkg_install() {
vmove usr/bin
vmove usr/share/man/man1
}
}
libpinyin-common-devel_package() {
short_desc="Common files for libpinyin and libzhuyin"
pkg_install() {
vmove "usr/include/libpinyin-2.6.0/novel*"
}
}
libpinyin-devel_package() {
depends="libglib-devel libpinyin-${version}_${revision}
libpinyin-common-devel-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include/libpinyin-2.6.0/pinyin*"
vmove usr/lib/pkgconfig/libpinyin.pc
vmove "usr/lib/libpinyin.so"
vmove "usr/lib/libpinyin.a"
}
}
libzhuyin-devel_package() {
depends="libglib-devel libzhuyin-${version}_${revision}
libpinyin-devel-${version}_${revision}"
short_desc="${short_desc/PinYin/ZhuYin} - development files"
pkg_install() {
vmove "usr/include/libpinyin-2.6.0/zhuyin*"
vmove usr/lib/pkgconfig/libzhuyin.pc
vmove usr/lib/libzhuyin.a
vmove usr/lib/libzhuyin.so
}
}

1
srcpkgs/libzhuyin Symbolic link
View file

@ -0,0 +1 @@
libpinyin

1
srcpkgs/libzhuyin-devel Symbolic link
View file

@ -0,0 +1 @@
libpinyin