desktop/python-unidecode/PKGBUILD
2014-09-06 18:06:09 +00:00

43 lines
1.0 KiB
Bash

# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributor: Matias Moreno <mmoreno80@gmail.com>
pkgbase=python-unidecode
pkgname=('python2-unidecode' 'python3-unidecode')
_pkgname=Unidecode
pkgver=0.04.16
pkgrel=1
pkgdesc='ASCII transliterations of Unicode text.'
arch=('x86_64')
license=('GPL')
url="http://pypi.python.org/pypi/Unidecode/"
makedepends=('python2-setuptools' 'python3-setuptools')
options=('!emptydirs')
source=(http://pypi.python.org/packages/source/U/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('4cd218737d1a807bbaba9a6534fc3c80d129cff76cf7d7fdbd71e744d836657b')
prepare() {
for d in python{,2,3}-unidecode; do
cp -r Unidecode-${pkgver} $d
done
}
build() {
for d in python{,2,3}-unidecode; do
pushd $d
${d%-*} setup.py build
popd
done
}
package_python2-unidecode() {
cd python2-unidecode
python2 setup.py install --root="${pkgdir}" --optimize='1'
}
package_python3-unidecode() {
cd python3-unidecode
python3 setup.py install --root="${pkgdir}" --optimize='1'
}