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.2.2
|
|
pkgrel=1
|
|
_modelver=15
|
|
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=('dc98b99e6f90c2f619ee9846f8c35babf5846a96894d5c393e9d85321ee6f0c9'
|
|
'9e77a4fc8fa3d00adbca8df3c33f7c37f34e14a9c84ad7743af99e5444b768f5')
|
|
|
|
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
|
|
}
|