blob: 4f2cb64933251409d1e13ba2e6ca2fe74b84784a (
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
|
# Maintainer: brent s. <bts[at]square-r00t[dot]net>
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
pkgname=python-pychroot
pkgver=0.9.16
pkgrel=5
pkgdesc="A python library and CLI tool that simplifies chroot handling"
arch=( 'i686' 'x86_64' )
url="https://pypi.python.org/pypi/pychroot/"
license=( 'BSD' )
depends=( 'python' 'python-snakeoil' )
makedepends=( 'python' 'python-snakeoil' )
_pkgname=pychroot
install=
changelog=
noextract=()
source=("https://pypi.python.org/packages/71/f0/c21a8e3f0b573424daa61700b08e76867742e43105631a996a22b99b1099/pychroot-0.9.16.tar.gz"
"pychroot-0.9.16.tar.gz.sig")
sha512sums=('6e35c7b40ad27d234c855abf1857aa6579583d848b111559de21edfa0bc6987e08d1d122924101e2e9bdf37886591b7291a607ed22cf2c50aa11b32f7ea65495'
'SKIP')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python3 setup.py build || return 1
}
package() {
PYVER=$(python --version | sed -re 's/^Python[[:space:]]*([0-9]\.[0-9])\.[0-9]*/\1/g')
cd "${srcdir}/${_pkgname}-${pkgver}"
python3 setup.py install --root="${pkgdir}" --optimize=1 || return 1
install -D -m 0644 ${srcdir}/${_pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
ln -sf ${pkgdir}/usr/bin/${_pkgname} ${pkgdir}/usr/lib/python${PYVER}/site-packages/pychroot/scripts/__init__.py
}
|