summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPieter Goetschalckx2015-06-18 17:11:19 +0200
committerPieter Goetschalckx2015-06-18 17:11:19 +0200
commit50353e7038aa89ff3aeaa2d93a99af2f8bff6334 (patch)
tree9d1d7b535ca1e2f4ddf9e02fdc572fee1b754804
downloadaur-50353e7038aa89ff3aeaa2d93a99af2f8bff6334.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD36
-rw-r--r--webkit2png.patch8
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0f402f22820
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = webkit2png-git
+ pkgdesc = Takes screenshots using webkit
+ pkgver = r98.520112e
+ pkgrel = 1
+ url = https://github.com/adamn/python-webkit2png
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = python2
+ depends = python2-pyqt4
+ depends = qtwebkit
+ source = webkit2png-git::git+https://github.com/adamn/python-webkit2png.git
+ source = webkit2png.patch
+ sha256sums = SKIP
+ sha256sums = 71c900fe1523ed7333454a517f8ce3db5dd6e35edb02f83833dfb82d5d3dcde3
+
+pkgname = webkit2png-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fa44deabfd6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Pieter Goetschalckx <3.14.e.ter at gmail dot com>
+
+pkgname=webkit2png-git
+pkgver=r98.520112e
+pkgrel=1
+pkgdesc="Takes screenshots using webkit"
+arch=('i686' 'x86_64')
+url="https://github.com/adamn/python-webkit2png"
+license=('GPL')
+depends=('python2' 'python2-pyqt4' 'qtwebkit')
+makedepends=('git')
+source=("$pkgname::git+https://github.com/adamn/python-webkit2png.git"
+ "webkit2png.patch")
+sha256sums=('SKIP'
+ '71c900fe1523ed7333454a517f8ce3db5dd6e35edb02f83833dfb82d5d3dcde3')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$pkgname"
+ patch -p0 -i "$srcdir/webkit2png.patch"
+}
+
+build() {
+ cd "$pkgname"
+ python2 setup.py build
+}
+
+package() {
+ cd "$pkgname"
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
diff --git a/webkit2png.patch b/webkit2png.patch
new file mode 100644
index 00000000000..5fe114e4512
--- /dev/null
+++ b/webkit2png.patch
@@ -0,0 +1,8 @@
+--- scripts/webkit2png
++++ scripts/webkit2png
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python2
+ #
+ # webkit2png.py
+ #