desktop/python-regex/PKGBUILD

44 lines
1.7 KiB
Bash
Raw Normal View History

2016-01-11 10:15:33 +08:00
# contribution from Arch https://aur.archlinux.org/packages/python-regex/
2017-06-17 20:05:27 +08:00
_pkgbase=regex
2016-01-11 10:15:33 +08:00
pkgbase=python-regex
pkgname=('python3-regex' 'python2-regex')
2017-11-01 06:04:26 +08:00
pkgver=2017.09.23
2016-01-11 10:15:33 +08:00
pkgrel=1
pkgdesc="Alternative python regular expression module."
arch=('any')
url="https://bitbucket.org/mrabarnett/mrab-regex"
license=('Python')
2017-06-17 20:05:27 +08:00
makedepends=('python3-setuptools' 'python2-setuptools' 'python3' 'python2')
2016-01-11 10:15:33 +08:00
options=(!emptydirs)
2017-06-17 20:05:27 +08:00
source=("https://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
2017-11-01 06:04:26 +08:00
sha256sums=('80166c9e21c0171c7b502035f3ba25f43b5122def387ca6ba9706b6892fed7aa')
2016-01-11 10:15:33 +08:00
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/"
}