diff options
author | Conrad Hoffmann | 2019-03-09 12:32:40 +0100 |
---|---|---|
committer | Étienne Lafarge | 2019-05-28 01:00:39 +0200 |
commit | 14b67653fe3bb71adae8cb2a1921c495088712d7 (patch) | |
tree | c68a731c0c81cdf3afadb8ce9542592a7f74388d /PKGBUILD | |
parent | 0fcc10a6171eff2810bfa4f57bd829afe5ddf0b3 (diff) | |
download | aur-14b67653fe3bb71adae8cb2a1921c495088712d7.tar.gz |
Use Python 3 instead of Python 2
Requires switching from the original cheetah to the cheetah3 fork, which
is only available in AUR. Also, ditch oauth dependency, looks like
cloud-init only imports oauthlib.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -10,12 +10,12 @@ pkgdesc="The standard for customising cloud instances" arch=('any') url="https://cloud-init.io" license=('GPL3') -depends=('systemd' 'sudo' 'python2-yaml' 'python2-cheetah' 'python2-prettytable' - 'python2-oauth' 'python2-boto' 'python2-configobj' - 'python2-jsonschema' 'python2-jsonpatch' 'python2-jsonpointer' 'net-tools' - 'python2-requests' 'python2-argparse' 'python2-oauthlib' - 'python2-jinja' 'dhclient') -makedepends=('python2' 'python2-setuptools' 'pkgconf') +depends=('systemd' 'sudo' 'python-yaml' 'python-cheetah3' 'python-prettytable' + 'python-boto' 'python-configobj' + 'python-jsonschema' 'python-jsonpatch' 'python-jsonpointer' 'net-tools' + 'python-requests' 'python-argparse' 'python-oauthlib' + 'python-jinja' 'dhclient') +makedepends=('python' 'python-setuptools' 'pkgconf') backup=('etc/cloud/cloud.cfg' 'etc/cloud/cloud.cfg.d/05_logging.cfg') source=("https://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz" fix-lib.patch @@ -29,15 +29,13 @@ prepare(){ patch -Np1 -i ../fix-lib.patch - find . -name \*.py -exec sed -i '1s/python$/&2/' {} + - sed -i '1s/python$/&2/' tools/read* sed -e 's:/etc/systemd:/usr/lib/systemd:g' -e 's:\"/lib\":\"/usr/lib\":g' -i setup.py } package() { cd $pkgname-$pkgver - python2 ./setup.py install --root="$pkgdir" --init-system systemd + python ./setup.py install --root="$pkgdir" --init-system systemd install -m644 ../archlinux.cloud.cfg "$pkgdir"/etc/cloud/cloud.cfg } |