public
anonymous / PKGBUILD
Created

Fix Arch Linux PKGBUILD for cnetworkmanager

  • Download Gist
PKGBUILD
Shell
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
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Thomas Conneely <tc116 at le dot ac dot uk>
# Contributor: WonderWoofy <sugar.and.scruffy at gmail dot com>
# with credit to
# Maintainer: Arkham <arkham at archlinux dot us>
# Contributor: roverorna <roverorna at gmail dot com>
# for the cnetworkmanager-git PKGBUILD
 
pkgname=cnetworkmanager
pkgver=0.21.1
pkgrel=4
pkgdesc="Command Line Interface for NetworkManager"
arch=('any')
url="http://vidner.net/martin/software/cnetworkmanager/"
license=('GPL')
depends=('networkmanager' 'dbus-python' 'pygobject')
makedepends=('setuptools')
source=("http://vidner.net/martin/software/cnetworkmanager/$pkgname-$pkgver.tar.gz")
options=(!emptydirs)
md5sums=('3703a43a6d6f3692cb8dbac6372834f2')
 
build() {
cd $srcdir/$pkgname-$pkgver
 
# python2 fix
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' networkmanager/applet/pbkdf2.py
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' setup.py
}
 
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
./setup.py install --root=$pkgdir/ --optimize=1
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.