Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

ctemplate PKGBUILD and patch

View PKGBUILD
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
pkgname=ctemplate
pkgver=2.3
pkgrel=2
pkgdesc="A library implementing a simple but powerful template language for C++"
arch=('i686' 'x86_64')
url="http://code.google.com/p/ctemplate/"
license=('BSD')
makedepends=('subversion' 'python2')
depends=('gcc-libs' 'perl')
source=(svn+http://$pkgname.googlecode.com/svn/tags/$pkgname-$pkgver/
python2.patch)
sha256sums=('SKIP'
'51287e5043aaf8ea87dcf3f824ec8b92dceeafc74552abf32a447b38c3b12f13')
 
prepare() {
cd "$srcdir/$pkgname-$pkgver"
 
patch -p1 < "$srcdir/python2.patch"
}
 
build() {
cd "$srcdir/$pkgname-$pkgver"
 
./configure --prefix=/usr
make
}
 
package() {
cd "$srcdir/$pkgname-$pkgver"
 
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
View PKGBUILD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
diff -ur a/src/htmlparser/fsm_config.py b/src/htmlparser/fsm_config.py
--- a/src/htmlparser/fsm_config.py 2014-05-08 14:18:41.000000000 +0200
+++ b/src/htmlparser/fsm_config.py 2014-05-17 20:36:31.704608195 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright (c) 2008, Google Inc.
# All rights reserved.
diff -ur a/src/htmlparser/generate_fsm.py b/src/htmlparser/generate_fsm.py
--- a/src/htmlparser/generate_fsm.py 2014-05-08 14:18:41.000000000 +0200
+++ b/src/htmlparser/generate_fsm.py 2014-05-17 20:36:35.751227293 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright (c) 2008, Google Inc.
# All rights reserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.