Created
December 24, 2011 23:52
-
-
Save devkral/1518523 to your computer and use it in GitHub Desktop.
virtualbricks-pkgbuild-patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment