public
Created

virtualbricks-pkgbuild-patch

  • 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 34 35 36 37
# Maintainer: max_meyer
pkgname=virtualbricks
pkgver=0.5
pkgminorver=346
pkgrel=1
pkgdesc="An all in one virtualization solution available for the linux desktop"
arch=(any)
url="http://virtualbricks.eu/"
license=('GPL')
depends=('gnome-python-extras' 'python2' 'libglade' 'python-pygraphviz' 'python-imaging')
makedepends=()
provides=(virtualbricks)
conflicts=(virtualbricks-bzr)
#replaces=()
#backup=()
options=('!libtool' '!emptydirs')
#install=${pkgname}.install
source=(http://launchpad.net/virtualbrick/0.5-maintainance/0.5/+download/virtualbricks-${pkgver}.${pkgminorver}.tar.bz2 python2-micro.patch patch-virtualbricks-bin.patch)
#noextract=()
sha512sums=('ed4630b2eeb3b95f909901c6214d3e143d9727109cc306b24c4f35ca1fe6a9564c93619dac5817d0ca1dc9eb99bc5fa5187ace8ff11b49b5b42a91ee510c981d'
'e9a9c3b926627a8178934a6134c4cb3484d69e57b85da49b268148ef2e3b6b4052b8cc4b4093e89cffe603b9542c4d91a20004fe13fe40dba685427f9fa56f2c'
'1e9c974c6dba08e4c13b73f9c3b75b56877764f4499b1fa323132b65116e6fedfb8d0984969564d6de4fd8fd9a37c4620fc73db0f6d14f3fcada9af932fc14cd') #generate with 'makepkg -g'
 
PYTHON="/usr/bin/python2"
 
build() {
cd "$srcdir/$pkgname-$pkgver"
patch "setup.py" "$startdir/python2-micro.patch"
$PYTHON setup.py build -b $pkgdir
sed -e "s/___VERSION___/$pkgver/g" < ./share/virtualbricks.template.glade > share/virtualbricks.glade
patch "./main/virtualbricks" "$startdir/patch-virtualbricks-bin.patch"
}
 
package() {
cd "$srcdir/$pkgname-$pkgver"
$PYTHON setup.py install --prefix=/usr/ --root=$pkgdir/ --optimize=1
}
python2-micro.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
--- setup.py
+++ setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# coding: utf-8
"""
@@ -33,9 +33,9 @@
sys.prefix=arg.split('=')[1]
glade = open('share/virtualbricks.template.glade','r').read()
-micro = open('.bzr/branch/last-revision','r').read().split(' ')[0]
-if micro == '':
- micro = '000'
+"""micro = open('.bzr/branch/last-revision','r').read().split(' ')[0]
+if micro == '':"""
+micro = '000'
virtualbricks_version=CURRENT_VERSION+'.'+micro

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.