mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
pkgname=libpinyin
|
|
pkgver=2.1.0
|
|
pkgrel=1
|
|
_modelver=14
|
|
pkgdesc="Library to deal with pinyin."
|
|
arch=('x86_64')
|
|
url="https://github.com/libpinyin/libpinyin"
|
|
license=('GPL')
|
|
depends=('kyotocabinet' 'glib2')
|
|
makedepends=('gnome-common')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/$pkgver.tar.gz"
|
|
"$pkgname-model$_modelver.text.tar.gz::http://downloads.sourceforge.net/libpinyin/model$_modelver.text.tar.gz")
|
|
noextract=("$pkgname-model$_modelver.text.tar.gz")
|
|
sha256sums=('d6ce0da926cb3485fa4b2e3805d49674a96a55e0cde9d31d57afb2626cbc32c6'
|
|
'185f0f175a90bcfc55cf3cf6ceff8d447a6269492c0ca1a1fc0748ea2c181363')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
ln -s "$srcdir"/$pkgname-model$_modelver.text.tar.gz data/model$_modelver.text.tar.gz
|
|
sed -i "/wget.*model$_modelver\.text\.tar\.gz/ d" data/Makefile.am
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./autogen.sh --prefix=/usr --with-dbm=KyotoCabinet --enable-libzhuyin
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|