public
anonymous / gist:5477142
Created

Fixed Arch Linux PKGBUILD for cnetworkmanager-git

  • Download Gist
gistfile1.txt
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
# Maintainer: Arkham <arkham at archlinux dot us>
# Contributor: roverorna <roverorna at gmail dot com>
# Contributor: WonderWoofy <sugar.and.scruffy at gmail dot com>
 
pkgname=cnetworkmanager-git
_gitname="cnetworkmanager"
pkgver=v0.1.666.129.ge2c0011
pkgrel=1
pkgdesc="Command Line Interface for NetworkManager"
arch=('i686' 'x86_64')
url="http://vidner.net/martin/software/cnetworkmanager/"
license=('GPL')
depends=('networkmanager' 'dbus-python' 'pygobject')
makedepends=('git' 'setuptools')
source=('git://github.com/mvidner/cnetworkmanager.git')
md5sums=('SKIP')
 
 
pkgver() {
cd $_gitname
git describe --always | sed 's|-|.|g'
}
 
build() {
cd $_gitname
#Set python2 in pbkdf2.py and setup.py
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}/${_gitname}"
./setup.py build install --root="$pkgdir" --optimize=1
}
~
~

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.