summaryrefslogtreecommitdiff
path: root/pcr/python-regex/PKGBUILD
blob: c4b052f140ba466d7eece8e70629ec1aec338053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Jelle van der Waa <jelle@archlinux.org>
# Contributor: Nikola Milinković <nikmil@gmail.com>
# Submitter: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

pkgbase=python-regex
pkgname=('python-regex' 'python2-regex')
pkgname=python-regex
pkgver=2017.04.23
pkgrel=2.parabola1
pkgdesc="Alternative python regular expression module."
arch=('x86_64' 'i686' 'armv7h')
url="https://bitbucket.org/mrabarnett/mrab-regex"
license=('PSFL')
makedepends=('python-setuptools' 'python2-setuptools')
options=(!emptydirs)
source=('https://pypi.python.org/packages/c1/8e/50066f0fe05841759327f3cfa40fec8b94da12eab022d480e7c56315dc2f/regex-2017.04.23.tar.gz')
sha512sums=('fc0b7de68d687c9bcc69b0564aac2c0ce33632ea8c04882cae9c3eee46a96e0e8c40bc80a672f3ee47e60d98fe30fabf1f8def2f4962465040713c784cd90ac4')

package_python2-regex() {
  depends=('python2')
  conflicts=('python2-regex-hg')
  pkgdesc="Alternative python regular expression module. (python2 version)"

  cd "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_python-regex() {
  depends=('python')
  conflicts=('python-regex-hg')
  pkgdesc="Alternative python regular expression module. (python3 version)"

  cd "regex-${pkgver}"
  python 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/"
}