python-regex: update to 2015.11.22

This commit is contained in:
gnastyle 2016-01-11 03:15:33 +01:00
parent 204742adb2
commit 52388cad1c
2 changed files with 42 additions and 28 deletions

42
python-regex/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# contribution from Arch https://aur.archlinux.org/packages/python-regex/
pkgbase=python-regex
pkgname=('python3-regex' 'python2-regex')
pkgver=2015.11.22
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=('f74ef48cc8901b679bda0c5096129147d793a17c98f22c7559abe92208731a87')
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/"
}

View File

@ -1,28 +0,0 @@
# Maintainer: Ernesto Manríquez <alejandronova@gmail.com>
pkgname=python2-regex
_pkgname=regex
pkgver=2014.12.15
pkgrel=1
pkgdesc="Alternative regular expression module, to replace re."
arch=('x86_64')
url="https://code.google.com/p/mrab-regex-hg/"
license=('custom')
depends=('python2')
makedepends=('python2-setuptools')
conflicts=('python2-regex-hg')
source=("https://pypi.python.org/packages/source/r/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('ac7b39d07e286ee6038d86fe829a465e2f699a86ecba73726de3d9986f651b1c')
build() {
cd "$srcdir/$_pkgname-$pkgver"
python2 setup.py build
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python2 setup.py install --prefix=/usr --root="$pkgdir"
}