summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13d246dd5b2cd75c20ad0bf227edf78a7188ff80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Jakub Kozisek <nodevel at gmail dot com>

set -u
pkgname='pdfreflow'
pkgver='0.8.6'
pkgrel='1'
pkgdesc='operates on the output of pdftohtml and reflows the texts into paragraphs.'
arch=('i686' 'x86_64')
url='http://pdfreflow.sourceforge.net/'
license=('GPLv3')
makedepends=('gcc')
optdepends=('pdftohtml: for converting PDF files into HTML and XML formats')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tgz")
sha256sums=('b7bb103b7a3fd01db6c2220d13def2e833f5184ccecdcb187e67ae0c0914b7f7')

prepare() {
  set -u
  cd "${pkgname}-${pkgver}"
  ./configure --prefix='/usr'
  set +u
}

build() {
  set -u
  cd "${pkgname}-${pkgver}"
  make -s -j "$(nproc)"
  set +u
}

check() {
  set -u
  cd "${pkgname}-${pkgver}"
  cd 'test'
  ./doit.sh
  set +u
}

package() {
  set -u
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  set +u
}
set +u