desktop/libpinyin/PKGBUILD

31 lines
1.1 KiB
Bash
Raw Normal View History

2012-02-23 12:52:26 +08:00
pkgname=libpinyin
2015-08-03 21:45:24 +08:00
pkgver=1.2.0
pkgrel=1
2015-07-15 07:32:46 +08:00
_modelver=10
2012-02-23 12:52:26 +08:00
pkgdesc="Library to deal with pinyin."
2014-04-19 07:00:32 +08:00
arch=('x86_64')
2012-02-23 12:52:26 +08:00
url="https://github.com/libpinyin/libpinyin"
license=('GPL')
2014-04-19 07:00:32 +08:00
depends=('db' 'glib2')
makedepends=('git' 'libtool' 'autoconf' 'automake')
2015-07-15 07:32:46 +08:00
source=("https://github.com/libpinyin/libpinyin/archive/${pkgver}.tar.gz"
2014-04-19 07:00:32 +08:00
"http://downloads.sourceforge.net/libpinyin/model${_modelver}.text.tar.gz")
noextract=("model${_modelver}.text.tar.gz")
2015-08-03 21:45:24 +08:00
sha512sums=('9091ad42ac1e73e89886b70deb39339ada936bbf881cb53e2e0f8b018c43c690fcdc1d78d206ab415de4bae1638f8ee6083479bf10e730cf8bb07afa1b5719eb'
2015-07-15 07:32:46 +08:00
'75006472fc522026605a6f93a0328fa7d0a9b01da7c1d804a168f390b39cf7fac3985852b6efcb0f3ef01bec0b48a73652042af44191d11ca7e54097414c140a')
2012-02-23 12:52:26 +08:00
build() {
2015-07-15 07:32:46 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
2014-04-19 07:00:32 +08:00
cp ../model${_modelver}.text.tar.gz data/
sed -i "/wget.*model${_modelver}\.text\.tar\.gz/ d" data/Makefile.am
2012-02-23 12:52:26 +08:00
aclocal && libtoolize --force && autoheader && automake -a && autoconf
2014-04-19 07:00:32 +08:00
./configure --prefix=/usr && make
2012-02-23 12:52:26 +08:00
}
package() {
2015-07-15 07:32:46 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
2014-04-19 07:00:32 +08:00
make DESTDIR="${pkgdir}" install
2012-02-23 12:52:26 +08:00
}