added pdfmerge
This commit is contained in:
parent
bc86ed1045
commit
5146ed4051
|
@ -0,0 +1,26 @@
|
||||||
|
# Maintainer: Martchus <martchus@gmx.net>
|
||||||
|
|
||||||
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
||||||
|
# you also find the URL of a binary repository.
|
||||||
|
|
||||||
|
pkgname=pdfmerge
|
||||||
|
pkgver=1.0.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Wrapper script for Ghostscript to merge multiple docs/images in one PDF files."
|
||||||
|
arch=('any')
|
||||||
|
license=('GPL')
|
||||||
|
groups=()
|
||||||
|
provides=()
|
||||||
|
depends=('ghostscript')
|
||||||
|
makedepends=()
|
||||||
|
conflicts=()
|
||||||
|
replaces=()
|
||||||
|
backup=()
|
||||||
|
install=
|
||||||
|
source=('pdfmerge.sh')
|
||||||
|
noextract=()
|
||||||
|
sha256sums=('59de8adb5bd19c7762c3e3a248a1dbee08376589bb5e9672f761055be1ea7b7e')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "${srcdir}/pdfmerge.sh" "${pkgdir}/usr/bin/pdfmerge"
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if [[ $# == 0 ]]; then
|
||||||
|
echo "Usage: pdfmerge output input1 input2 ..."
|
||||||
|
else
|
||||||
|
output="$1"
|
||||||
|
shift 1
|
||||||
|
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$output" "$@"
|
||||||
|
fi
|
Loading…
Reference in New Issue