desktop/libpinyin/PKGBUILD
2016-03-22 20:01:02 +01:00

31 lines
967 B
Bash

pkgname=libpinyin
pkgver=1.2.91
pkgrel=2
_modelver=11
pkgdesc="Library to deal with pinyin."
arch=('x86_64')
url="https://github.com/libpinyin/libpinyin"
license=('GPL')
depends=('db' 'glib2')
makedepends=('git' 'libtool' 'autoconf' 'automake')
source=("https://github.com/libpinyin/libpinyin/archive/${pkgver}.tar.gz"
"http://downloads.sourceforge.net/libpinyin/model${_modelver}.text.tar.gz")
noextract=("model${_modelver}.text.tar.gz")
sha256sums=('fef22cc43858616766aa8738321e7da39fe3e7fb95ae321a88dc260ff571b0f6'
'd0428e87a8c6b214036641a3317834f8352e77cbba0f040c7bd3495d13ef3f71')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
cp ../model${_modelver}.text.tar.gz data/
sed -i "/wget.*model${_modelver}\.text\.tar\.gz/ d" data/Makefile.am
aclocal && libtoolize --force && autoheader && automake -a && autoconf
./configure --prefix=/usr && make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}