desktop/python-regex/PKGBUILD
AlmAck 08a66c4024 python3 rebuild for 3.5
new pkg added to fullfill checkdepends
new order file python3.order
2016-03-16 22:36:13 +01:00

43 lines
1.6 KiB
Bash

# contribution from Arch https://aur.archlinux.org/packages/python-regex/
pkgbase=python-regex
pkgname=('python3-regex' 'python2-regex')
pkgver=2016.02.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')
options=(!emptydirs)
source=("https://pypi.python.org/packages/source/r/regex/regex-${pkgver}.tar.gz")
sha256sums=('4d795d05f27770f1c022363ad913daa53d393d3ee09d2ca9529eef42a35737f0')
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/"
}