summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 226a48147be3f8fd1126dfda151809bde1dda3cf (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer	- mawcomw <mawcomw@gmail.com>
# Contributor	- Martti K├╝hne <mysatyre@gmail.com>
# Contributor	- apkawa <apkawa@gmail.com>

#pkgbase=python-lepl
#pkgname=('python-lepl' 'python2-lepl')
pkgname=python-lepl
pkgver=5.1.3
pkgrel=1
arch=('any')
url="http://www.acooke.org/lepl/index.html"
license=('LGPL')
#makedepends=('python2' 'python2-setuptools' 'python' 'python-setuptools')
makedepends=('python' 'python-setuptools')
source=( https://pypi.python.org/packages/source/L/LEPL/LEPL-$pkgver.tar.gz
		'LGPL-3.0.txt'
		'MPL-1.1.txt')
md5sums=( '5f653984c57ad8efad828c5153660743'
		'e6a600fd5e1d9cbde2d983680233ad02'
		'4fc87e887bb0ede396a78bd31155c5d6')

prepare() {
   mv LEPL-$pkgver python-lepl-${pkgver}
#   cp -r python-lepl-${pkgver} python2-lepl-${pkgver}
}

build() {
   cd $srcdir/python-lepl-${pkgver}
   python setup.py build
   
#   cd $srcdir/python2-lepl-${pkgver}
#   python2 setup.py build
}

#check(){
#   cd $srcdir/python-lepl-${pkgver}
#   python setup.py test
#   
#   cd $srcdir/python2-lepl-${pkgver}
#   python2 setup.py test
#}

#package_python-lepl() {
package() {
   depends=('python' )
   pkgdesc="A Python3 recursive descent parser, written in Python, which has a a friendly, easy-to-use syntax"

   cd python-lepl-${pkgver}
   python setup.py install --root="${pkgdir}" --optimize=1

   cd ..
   install -Dm644 LGPL-3.0.txt "${pkgdir}"/usr/share/licenses/$pkgname/LGPL-3.0.txt
   install -Dm644 MPL-1.1.txt "${pkgdir}"/usr/share/licenses/$pkgname/MPL-1.1.txt
}

#package_python2-lepl() {
#   depends=('python2' )
#   pkgdesc="A Python2 recursive descent parser, written in Python, which has a a friendly, easy-to-use syntax"
#   
#   cd python2-lepl-${pkgver}
#   python2 setup.py install --root="${pkgdir}" --optimize=1
#
#   cd ..
#   install -Dm644 LGPL-3.0.txt "${pkgdir}"/usr/share/licenses/$pkgname/LGPL-3.0.txt
#   install -Dm644 MPL-1.1.txt "${pkgdir}"/usr/share/licenses/$pkgname/MPL-1.1.txt
#}