blob: 3039768e25f8945957ebfda5126a430544cf6973 (
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
|
# Maintainer: Tony Lambiris <tony@libpcap.net>
pkgbase=python-smartcols
pkgname=('python2-smartcols' 'python-smartcols')
pkgver=0.3.0
pkgrel=2
pkgdesc="Python bindings for util-linux libsmartcols-library."
arch=("any")
license=("GPL")
url="https://github.com/ignatenkobrain/python-smartcols"
depends=("python" "python2")
source=("https://github.com/ignatenkobrain/${pkgbase}/archive/v${pkgver}.tar.gz")
sha256sums=('88dfe9ee99089b1b84b3476362e6f0be2f89d4420a6cbe7436fbd661f07f29d1')
prepare() {
cp -a "${pkgbase}-${pkgver}" "${pkgbase}-${pkgver}-py2"
# change python to python2
cd "${pkgbase}-${pkgver}-py2"
find . -name '*.py' -exec sed -i "s|python|python2|g" {} \;
}
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
python ./setup.py build
cd "${srcdir}/${pkgbase}-${pkgver}-py2"
python2 ./setup.py build
}
package_python-smartcols() {
depends=("python")
cd "${srcdir}/${pkgbase}-${pkgver}"
python ./setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_python2-smartcols() {
depends=("python2")
cd "${srcdir}/${pkgbase}-${pkgver}-py2"
python2 ./setup.py install --root="${pkgdir}" --optimize=1
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|