28 lines
904 B
Bash
28 lines
904 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
# Submitter (Arch): Xiao-Long Chen <chenxiaolong@cxl.epac.to>
|
|
|
|
_pkgbase=regex
|
|
pkgname=python-regex
|
|
pkgver=2021.7.6
|
|
pkgrel=2
|
|
pkgdesc="Alternative python regular expression module."
|
|
arch=('i686' 'x86_64')
|
|
url='https://bitbucket.org/mrabarnett/mrab-regex'
|
|
license=('Python' 'Apache-2.0')
|
|
depends=('python')
|
|
makedepends=('python-setuptools')
|
|
options=(!emptydirs)
|
|
source=("https://files.pythonhosted.org/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
|
|
sha512sums=('0849caaafc669b6dc322dcd4d48962cefbe955c19f9ee3d657b7b8389f77ab2b2e27ec341745dff01a60dd3930904d69015a334ff748de10be2d0b7c421b0967')
|
|
|
|
build() {
|
|
cd "${_pkgbase}-${pkgver}"
|
|
python setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "${_pkgbase}-${pkgver}"
|
|
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
|
|
install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
|
|
}
|