diff options
author | root <root@rshg054.dnsready.net> | 2012-11-13 01:32:19 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-13 01:32:19 -0800 |
commit | a29329c38e50afd28d28c3a99e35d8774b9b19f8 (patch) | |
tree | 42f4b2e44d0f2fcce6dff4f44ba48e623437b16e /community/libpinyin/PKGBUILD | |
parent | b863c91c6c9218e2ad9458231b24385be177ed08 (diff) |
Tue Nov 13 01:32:13 PST 2012
Diffstat (limited to 'community/libpinyin/PKGBUILD')
-rw-r--r-- | community/libpinyin/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/libpinyin/PKGBUILD b/community/libpinyin/PKGBUILD new file mode 100644 index 000000000..106e8fe20 --- /dev/null +++ b/community/libpinyin/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 79781 2012-11-12 13:17:19Z fyan $ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: Yangtse <yangtsesu@gmail.com> +# Contributor: WU Jun <quark at lihdd dot net> + +pkgname=libpinyin +pkgver=0.7.92 +pkgrel=1 +pkgdesc="Library to deal with pinyin." +arch=('i686' 'x86_64') +url="https://github.com/libpinyin/libpinyin" +license=('GPL') +depends=('db' 'glib2') +options=(!libtool) +source=("https://github.com/downloads/libpinyin/libpinyin/${pkgname}-lite-${pkgver}.tar.gz" + 'https://github.com/downloads/libpinyin/libpinyin/model.text.tar.gz') +noextract=("model.text.tar.gz") + +md5sums=('697778a2164f0176add124788b1c85bb' + '59be0e37b0834e41be9786d3b2fcc129') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + cp "${srcdir}/model.text.tar.gz" "${srcdir}/${pkgname}-${pkgver}/data/" + sed -i '/wget.*model\.text\.tar\.gz/ d' ${srcdir}/${pkgname}-${pkgver}/data/Makefile.am + + aclocal && libtoolize --force && autoheader && automake -a && autoconf + ./configure --prefix=/usr && make +} + +package() { + cd "${srcdir}/libpinyin-$pkgver" + make DESTDIR="${pkgdir}" install +} |