Skip to content

Instantly share code, notes, and snippets.

@sjewo
Created March 6, 2015 12:46
Show Gist options
  • Save sjewo/58bd6e11d67a5a0da04d to your computer and use it in GitHub Desktop.
Save sjewo/58bd6e11d67a5a0da04d to your computer and use it in GitHub Desktop.
Archlinux PKGBUILD for python-pypdftk
pkgname=python-pypdftk
pkgver=0.3
pkgrel=1
pkgdesc="Python module to drive the awesome pdftk binary."
arch=('i686' 'x86_64')
url="https://github.com/revolunet/pypdftk"
license=('MT')
depends=('pdftk-bin')
makedepends=('python-setuptools')
source=("https://github.com//sjewo/pypdftk/archive/v${pkgver}.tar.gz")
md5sums=('4f41030f464db56abc8241438b1bd47b')
build() {
cd "${srcdir}/pypdftk-$pkgver"
sed -i "s/f = open(out_file, 'w')/f = open(out_file, 'wt')/" pypdftk.py
python setup.py build
}
package() {
cd "${srcdir}/pypdftk-$pkgver"
python setup.py install --root="${pkgdir}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment