mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
44 lines
1.7 KiB
Bash
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.06.07
|
|
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=('e45784bbe5a0ce4a954fbc5e0f72909798257241147271d4906bc617fd59261b')
|
|
|
|
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/"
|
|
}
|