summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f9be5d3ab8cfcc2869db85ef4283caf1b8d9297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: zoe <chp321 AT gmail DOT com>

pkgname=pdf-remove-blank-pages
pkgver=0.2
pkgrel=3
pkgdesc="Automatically remove blank pages from pdf. For text-pdf only, not for images-pdf (removes pages with no text in it)"
arch=(any)
url="https://repolinux.wordpress.com/2012/04/05/automatically-remove-blank-pages-from-pdf/"
license=("GPLv3+")
depends=('python' 'bash' 'pdftk' 'poppler' 'gawk')
source=("non-blank-page-ranges.py" "pdf-remove-blank-pages.sh")
md5sums=('1a9c76689a828c18b1263ef11c3ee990' '24814509b89239a4c270d57a1ff35304')

package() {
   
  mkdir -p $pkgdir/usr/bin/
  install -D -m 0755 $srcdir/non-blank-page-ranges.py \
		             $pkgdir/usr/bin/non-blank-page-ranges.py
  install -D -m 0755 $srcdir/${pkgname}.sh \
		             $pkgdir/usr/bin/${pkgname}
}