# $Id: PKGBUILD 92622 2013-06-10 07:23:18Z fyan $ # Maintainer: Felix Yan # Contributor: Yangtse # Contributor: WU Jun pkgname=libpinyin pkgver=0.9.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/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=('6e88143d0032a7da61d141b23df2265540ea7667dfe641e9f1945cf8bc7b2c9df72d96bfa4df4333d550ca9f6d64545076b1aceda1d2b855fa95a2bd793943f4' '8719d99b2efb22438ec067c046f8d45addb3e0d336e8d6ec4b8ed22370fe81366d19a34934bb059230f86e74c379acb62822ee3458850437880d531de8ff3e0e')