blob: 69f99f0808478389cc385a0923b96f9be3ef6224 (
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
|
# Maintainer: gosella <gosella@gmail.com>
# Submitter: OK100 <ok100.ok100.ok100@gmail.com>
pkgname=('python-pager' 'python2-pager')
pkgver=3.3
pkgrel=6
pkgdesc='Terminal/console pager module for Python'
arch=('any')
url='http://pypi.python.org/pypi/pager'
license=('Public Domain')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://pypi.org/packages/source/p/pager/pager-$pkgver.tar.gz")
md5sums=('fbebda4d8d537c8aa0de883d15b87b95')
prepare() {
cd "$srcdir"
cp -a pager-$pkgver{,-py2}
find pager-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} +
}
build() {
cd "$srcdir/pager-$pkgver"
python setup.py build
cd "$srcdir/pager-$pkgver-py2"
python2 setup.py build
}
package_python-pager() {
depends=('python')
cd "$srcdir/pager-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
}
package_python2-pager() {
depends=('python2')
cd "$srcdir/pager-$pkgver-py2"
python2 setup.py install --root="$pkgdir/" --optimize=1
}
# vim:set ts=2 sw=2 et:
|