desktop/python-regex/PKGBUILD
2017-10-31 23:04:26 +01:00

44 lines
1.7 KiB
Bash

# contribution from Arch https://aur.archlinux.org/packages/python-regex/
_pkgbase=regex
pkgbase=python-regex
pkgname=('python3-regex' 'python2-regex')
pkgver=2017.09.23
pkgrel=1
pkgdesc="Alternative python regular expression module."
arch=('any')
url="https://bitbucket.org/mrabarnett/mrab-regex"
license=('Python')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3' 'python2')
options=(!emptydirs)
source=("https://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
sha256sums=('80166c9e21c0171c7b502035f3ba25f43b5122def387ca6ba9706b6892fed7aa')
package_python2-regex() {
depends=('python2')
conflicts=('python2-regex-hg')
pkgdesc="Alternative python regular expression module. (python2 version)"
cd "${srcdir}/regex-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
install -v -m755 -d "${pkgdir}/usr/share/doc/python2-regex"
install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python2-regex/"
install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python2-regex/"
install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python2-regex/"
}
package_python3-regex() {
depends=('python3')
conflicts=('python3-regex-hg')
pkgdesc="Alternative python regular expression module. (python3 version)"
cd "${srcdir}/regex-${pkgver}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -v -m755 -d "${pkgdir}/usr/share/doc/python-regex"
install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python-regex/"
install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python-regex/"
install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python-regex/"
}