#Maintainer: Dimitris Tzemos pkgname=pyzy pkgver=1.0 pkgrel=1dj docs=('copying' 'changelog' 'news' 'readme') url=https://github.com/pyzy/pyzy source=("$pkgname-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (The Chinese PinYin and Bopomofo conversion library)" ) build() { cd $SRC/$pkgname || return 1 # replace python with python2; see https://github.com/hsumita/libpyzy/issues/1 find . -name '*.py' -exec sed -ri '1s#(bin/|env )python#\1python2#' '{}' \; ./autogen.sh --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 }