Created
March 6, 2015 12:46
-
-
Save sjewo/58bd6e11d67a5a0da04d to your computer and use it in GitHub Desktop.
Archlinux PKGBUILD for python-pypdftk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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