diff options
author | Mark Blakeney | 2021-04-29 15:46:54 +1000 |
---|---|---|
committer | Mark Blakeney | 2021-04-29 15:46:54 +1000 |
commit | 2f2f526de88a398deb3cb2996b681be63e1b8f57 (patch) | |
tree | a06210c2de24fc332cd5d600e330e8dd502e172a | |
download | aur-2f2f526de88a398deb3cb2996b681be63e1b8f57.tar.gz |
Initial version 1.0
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8211122e140d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = pdfcmd + pkgdesc = Utility to perform commands on PDF files. + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/bulletmark/pdfcmd + arch = any + license = GPL3 + makedepends = python-pip + makedepends = python-wheel + depends = python>=3.5 + depends = python-pypdf2 + source = pdfcmd-1.0.tar.gz::https://github.com/bulletmark/pdfcmd/archive/1.0.tar.gz + sha1sums = e3d17077ad6352ad6e029932108d98c86c7e71be + +pkgname = pdfcmd + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6dd39bbd03b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ +*.tar +*.[gx]z diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2848b5063c5b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: mark.blakeney at bullet-systems dot net +pkgname=pdfcmd +pkgver=1.0 +pkgrel=1 +pkgdesc='Utility to perform commands on PDF files.' +url="https://github.com/bulletmark/$pkgname" +license=("GPL3") +arch=("any") +depends=("python>=3.5" "python-pypdf2") +makedepends=("python-pip" "python-wheel") +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha1sums=('e3d17077ad6352ad6e029932108d98c86c7e71be') + +package() { + cd "$srcdir/$pkgname-$pkgver" + + PIP_CONFIG_FILE=/dev/null pip install \ + --root="$pkgdir" \ + --isolated \ + --ignore-installed \ + --no-deps \ + --disable-pip-version-check \ + --no-python-version-warning \ + --no-warn-script-location \ + --no-cache-dir \ + --no-compile \ + --progress-bar=off \ + . + + local pdir=$(python -c "import site; print(site.getsitepackages()[0])") + local _pkgname="${pkgname//-/_}" + cd "$pkgdir/$pdir" + rm -f $_pkgname-*.dist-info/direct_url.json + sed -i "/\/direct_url.json,/d" $_pkgname-*.dist-info/RECORD + python -O -m compileall -q . +} + +# vim:set ts=2 sw=2 et: |