summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpostblue2015-11-04 17:22:21 +0100
committerpostblue2015-11-04 17:22:21 +0100
commit0fe49ffce3efbc08a210f6b22a2627c360abb9ca (patch)
treeecdf77f0c7c48b4ee7fc05eb7b0af44d248519ec
downloadaur-0fe49ffce3efbc08a210f6b22a2627c360abb9ca.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD27
-rw-r--r--bookletimposer.install11
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2af096663bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = bookletimposer
+ pkgdesc = Achieve some basic imposition on PDF documents
+ pkgver = 0.2
+ pkgrel = 1
+ url = http://kjo.herbesfolles.org/bookletimposer/
+ install = bookletimposer.install
+ arch = any
+ license = GPLv3+
+ makedepends = python2-distutils-extra
+ makedepends = pandoc
+ depends = python2>=2.6
+ depends = python2-pypdf>=1.13
+ depends = python2-gobject
+ depends = desktop-file-utils
+ source = http://kjo.herbesfolles.org/bookletimposer/archive/bookletimposer-0.2.tar.gz
+ md5sums = c0e5517bae1949dc1d707541f7a8eb51
+
+pkgname = bookletimposer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..58da9d0066e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Guillaume Hayot <postblue@postblue.info>
+# Author: Kjö Hansi Glaz <kjo@a4nancy.net.eu.org>
+# TODO: Fix broken help page
+
+pkgname=bookletimposer
+pkgver=0.2
+pkgrel=1
+pkgdesc="Achieve some basic imposition on PDF documents"
+arch=('any')
+url="http://kjo.herbesfolles.org/bookletimposer/"
+license=('GPLv3+')
+depends=('python2>=2.6' 'python2-pypdf>=1.13' 'python2-gobject' 'desktop-file-utils')
+makedepends=('python2-distutils-extra' 'pandoc')
+install=bookletimposer.install
+source=("http://kjo.herbesfolles.org/bookletimposer/archive/$pkgname-$pkgver.tar.gz")
+md5sums=("c0e5517bae1949dc1d707541f7a8eb51")
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ sed -i 's/env python$/&2/' lib/$pkgname/__init__.py lib/$pkgname/backend.py lib/$pkgname/config.py lib/$pkgname/gui.py lib/pdfimposer.py setup.py bin/$pkgname
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize 1
+ ln -s /usr/share/pixmaps/bookletimposer.svg $pkgdir/usr/share/bookletimposer/bookletimposer.svg
+}
diff --git a/bookletimposer.install b/bookletimposer.install
new file mode 100644
index 00000000000..cafbfefd4f1
--- /dev/null
+++ b/bookletimposer.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ update-desktop-database -q
+}