#Maintainer: Dimitris Tzemos pkgname=libpinyin pkgver=1.0 pkgrel=1dj docs=('authors') url="https://github.com/libpinyin/libpinyin" source=("$pkgname-$pkgver.tar.gz" "http://downloads.sourceforge.net/libpinyin/model${_modelver}.text.tar.gz") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (libpinyin Library)" "Library to deal with pinyin" ) build() { cd $SRC/$pkgname || return 1 cp ../model${_modelver}.text.tar.gz data/ sed -i "/wget.*model${_modelver}\.text\.tar\.gz/ d" data/Makefile.am aclocal && libtoolize --force && autoheader && automake -a && autoconf ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux || return 1 make || return 1 make install DESTDIR=$PKG || return 1 }