Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2012 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3070620 to your computer and use it in GitHub Desktop.
Save anonymous/3070620 to your computer and use it in GitHub Desktop.
PKGBUILD.new
--- PKGBUILD 2012-06-04 21:33:03.000000000 +0700
+++ PKGBUILD.new 2012-07-08 18:37:28.278569751 +0700
@@ -12,12 +12,14 @@
depends=('dbus-python' 'iptables' 'ebtables' 'gtk2' 'hicolor-icon-theme' 'pygtk' 'python2-slip' 'python2-decorator')
makedepends=('gettext' 'intltool')
install=$pkgname.install
-source=("http://fedorahosted.org/released/$pkgname/$pkgname-$pkgver.tar.bz2" "$pkgname")
+source=("http://fedorahosted.org/released/$pkgname/$pkgname-$pkgver.tar.bz2" "$pkgname" "utf8_fix.patch")
md5sums=('f831d74efb4ca9cdddb0f577079de4ed'
- '08d373921abb27ef5512b2c447b978ba')
+ '08d373921abb27ef5512b2c447b978ba'
+ '529cdc1370f8c12b1de433522dd09029')
build() {
cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i ${srcdir}/utf8_fix.patch
export PYTHON=python2
sed -i '1 s|^|#!/usr/bin/python\n|' $(find "$srcdir" -name '*.py')
sed -i 's|#![ ]*/usr/bin/python|#!/usr/bin/python2|' $(grep -rl '#!/usr/bin/python' "$srcdir")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment