summaryrefslogtreecommitdiff
path: root/community/libpinyin/PKGBUILD
blob: 9ee1c424e3493d864657e2bb7e679055eb406812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 80277 2012-11-19 05:28:17Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Yangtse <yangtsesu@gmail.com> 
# Contributor: WU Jun <quark at lihdd dot net>

pkgname=libpinyin
pkgver=0.8.0
pkgrel=1
pkgdesc="Library to deal with pinyin."
arch=('i686' 'x86_64' 'mips64el')
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")

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
}
md5sums=('e53cc51355a79acf187d768befbfcff8'
         '59be0e37b0834e41be9786d3b2fcc129')