desktop/libpinyin/PKGBUILD

31 lines
967 B
Bash
Raw Normal View History

2012-02-23 12:52:26 +08:00
pkgname=libpinyin
2015-12-01 07:22:48 +08:00
pkgver=1.2.91
2016-03-23 03:01:02 +08:00
pkgrel=2
2015-12-01 07:22:48 +08:00
_modelver=11
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-12-01 07:22:48 +08:00
sha256sums=('fef22cc43858616766aa8738321e7da39fe3e7fb95ae321a88dc260ff571b0f6'
'd0428e87a8c6b214036641a3317834f8352e77cbba0f040c7bd3495d13ef3f71')
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
}