blob: 548a199b26171ee6305ccec96986b5640493d73c (
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
|
# Maintainer: Chris Warrick <aur@chriswarrick.com>
pkgbase=python-bbcode
pkgname=('python-bbcode' 'python2-bbcode')
_pyname=bbcode
pkgver=1.1.0
pkgrel=1
pkgdesc='A pure Python BBCode parser and formatter.'
arch=('any')
url='https://pypi.python.org/pypi/bbcode'
license=('BSD')
makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
options=(!emptydirs)
source=("https://pypi.io/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('50eb877be1841f11f6407d38f216481b')
prepare() {
cd "${srcdir}/${_pyname}-${pkgver}"
cp -r "${srcdir}/${_pyname}-${pkgver}" "${srcdir}/${_pyname}-${pkgver}-py2"
}
package_python-bbcode() {
depends=('python' 'python-setuptools')
cd "${srcdir}/${_pyname}-${pkgver}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
}
package_python2-bbcode() {
depends=('python2' 'python2-setuptools')
cd "${srcdir}/${_pyname}-${pkgver}-py2"
python2 setup.py install --root="${pkgdir}/" --optimize=1
}
# vim:set ts=2 sw=2 et:
|