Skip to content

Instantly share code, notes, and snippets.

@hanetzer
Last active August 29, 2015 14:08
Show Gist options
  • Save hanetzer/0a61c801a1feb3301f1e to your computer and use it in GitHub Desktop.
Save hanetzer/0a61c801a1feb3301f1e to your computer and use it in GitHub Desktop.
--- configure
+++ configure.archlinux
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import optparse
import os
import pprint
@@ -216,12 +216,12 @@ def cc_macros():
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except OSError:
- print '''Node.js configure error: No acceptable C compiler found!
+ print ('''Node.js configure error: No acceptable C compiler found!
Please make sure you have a C compiler installed on your system and/or
consider adjusting the CC environment variable if you installed
it in a non-standard prefix.
- '''
+ ''')
sys.exit()
p.stdin.write('\n')
pkgname=ckm-tether
pkgver=1.0.1.5
pkgrel=1
pkgdesc="clockworkmod tethering app for linux"
arch=('i686' 'x86_64')
url="http://www.clockworkmod.com"
license=("gpl")
depends=("python2" "gksu" "xterm")
source=("http://download.clockworkmod.com/tether/tether-linux.tgz"
"makefile.patch" "waflight.patch" "configure.patch"
"ckm-tether" "ckm-tether.desktop" "ckm-tether.png")
md5sums=('98d68c0a6b3e199fa15c7d0a76339d5b'
'15246a5d1daaf2d7e84217531588957c'
'bb120911475295dd2a83f0f37405a50a'
'c3ef55c0d92c0af76d799257cb4067b4'
'f075457aaddee0b75466b14b0018a3eb'
'7dbd400d62d700d5bad74928a05846cd'
'20991f84d093eebeb761029649c4120e')
build() {
cd "$srcdir/Tether/node/tools"
patch -p0 < ${srcdir}/waflight.patch || return 1
cd ..
patch -p0 < ${srcdir}/makefile.patch || return 1
patch -p0 < ${srcdir}/configure.patch
./configure && make || return 1
}
package() {
mkdir -p $pkgdir/opt/ckm-tether
cp -ar out/Release/* $pkgdir/opt/ckm-tether
cd $srcdir/Tether
cp -ar {linux,node-tuntap} $pkgdir/opt/ckm-tether
cd $srcdir
install -D -m 755 ckm-tether $pkgdir/usr/bin/ckm-tether
install -D -m 664 ckm-tether.desktop $pkgdir/usr/share/applications/ckm-tether.desktop
install -D -m 664 ckm-tether.png $pkgdir/usr/share/icons/ckm-tether.png
#su node tuntap.js
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment