summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21ed51bd5255e791f44056226cb8e7f7b7db5806 (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
46
47
# Maintainer: aksr <aksr at t-com dot me>
pkgname=xfpt
pkgver=0.10
pkgrel=1
epoch=
pkgdesc="A program for turning a simple plain text markup into DocBook XML."
arch=('i686' 'x86_64')
url="http://people.ds.cam.ac.uk/ph10/"
license=('GPL')
groups=()
depends=()
makedepends=()
optdepends=()
checkdepends=()
provides=('xfpt')
conflicts=('xfpt-git')
replaces=()
backup=()
options=()
install=
changelog=
source=("ftp://ftp.csx.cam.ac.uk/pub/software/wordprocessing/unix/$pkgname/$pkgname-$pkgver.tar.bz2")
noextract=()
options=()
md5sums=('142094238168add3462bab446fbce520')
sha1sums=('f685afa9f1d3be473e23ca529ddc452f1dc87b8c')
sha256sums=('513dd655750d0bd8439c1a77bcfdcd95d0282004d8325834742c2caa658f2656')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver/testing"
  ./runtest
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make BINDIR=$pkgdir/usr/bin DATADIR=$pkgdir/usr/share/xfpt MANDIR=$pkgdir/usr/share/man install
  install -Dm644 doc/xfpt.pdf $pkgdir/usr/share/doc/$pkgname/xfpt.pdf
  install -Dm644 doc/xfpt.html $pkgdir/usr/share/doc/$pkgname/xfpt.html
  install -Dm644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE
}