diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/libpinyin/PKGBUILD | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
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..4622a10d9 --- /dev/null +++ b/community/libpinyin/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 93183 2013-06-27 13:57:26Z fyan $ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: Yangtse <yangtsesu@gmail.com> +# Contributor: WU Jun <quark at lihdd dot net> + +pkgname=libpinyin +pkgver=0.9.93 +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/libpinyin/libpinyin/archive/${pkgver}.tar.gz" + "http://downloads.sourceforge.net/libpinyin/model6.text.tar.gz") +noextract=("model6.text.tar.gz") + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + cp "${srcdir}/model6.text.tar.gz" "${srcdir}/${pkgname}-${pkgver}/data/" + sed -i '/wget.*model6\.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 +} +sha512sums=('7214c7913ed116a5557e89958d0d117e7a2781dcbbcc8b1c6713fb569ca121a5763e5cf1dedfdb4607638f773875c374112865d3a306876906a126954c4ef387' + '8719d99b2efb22438ec067c046f8d45addb3e0d336e8d6ec4b8ed22370fe81366d19a34934bb059230f86e74c379acb62822ee3458850437880d531de8ff3e0e') |