mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
42 lines
1 KiB
Bash
42 lines
1 KiB
Bash
# $Id$
|
|
# Maintainer: Felix Yan <felixonmars@gmail.com>
|
|
# Contributor: Kerrick Staley <mail@kerrickstaley.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to fix build on ARM
|
|
|
|
pkgname=pyzy
|
|
pkgver=1.0
|
|
_commit="d7747466562cb8b4bc2934708e29b7643c7bedbc"
|
|
pkgrel=3
|
|
pkgdesc='The Chinese PinYin and Bopomofo conversion library'
|
|
arch=('i686' 'x86_64')
|
|
url='https://github.com/pyzy/pyzy'
|
|
license=('LGPL')
|
|
depends=('glib2' 'sqlite' 'util-linux')
|
|
makedepends=('git' 'doxygen' 'gnome-common' 'python2')
|
|
source=("git://github.com/pyzy/pyzy.git#commit=$_commit"
|
|
'pyzy-0.1.0-fixes-compile.patch')
|
|
md5sums=('SKIP'
|
|
'f9fedfd7a54e382550ce3dccf21c9306')
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
patch -p1 -i ../pyzy-0.1.0-fixes-compile.patch
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
|
|
# 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
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
}
|