# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python2-ply _pkgname=ply pkgver=3.11 pkgrel=8 pkgdesc='Python Lex & Yacc.' url='https://pypi.org/project/ply/#files' arch=('any') license=('BSD') depends=('python2') makedepends=('python2-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('37e39a4f930874933223be58a3da7f259e155b75135f1edd47069b3b40e5e96af883ebf1c8a1bbd32f914a9e92cfc12e29fec05cf61b518f46c1d37421b20008') build() { cd "$_pkgname-$pkgver" python2 setup.py build } package() { cd "$_pkgname-$pkgver" python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build }