summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fe0559cf970b357a0d3ab8027d531134fa4ebe9 (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
# Contributed by; Jens Staal <staal1978@gmail.com>
# Contributor: Sascha Biermmanns <saschakb at gmail dot com>
# Contributor:  itikhonov
# Maintainer: aksr <aksr at t-com dot me>
pkgname=heirloom-doctools-cvs
pkgver=20120529
pkgrel=3
arch=('i686' 'x86_64')
pkgdesc="The Heirloom Documentation Tools consist of a modern roff suite."
url="http://heirloom.sourceforge.net/doctools.html"
license=('custom:berkeley' 'custom:"caldera"' 'custom:"opensolaris"' 'custom:"lucent"' 'LGPL' 'LPPL')
source=('config.diff')
makedepends=('cvs')
md5sums=('ccb66e215599cab347132e2f3240156e')
sha1sums=('5b7205e61227aceb81599bdb6a2a2c457d79a016')
sha256sums=('c6270ae3abdae91eb9adbdd093b33c9de758b0b31db397d3d406ac6ee16423af')

prepare() {
  cvs -d:pserver:anonymous:@heirloom.cvs.sourceforge.net:/cvsroot/heirloom login
  cvs -d:pserver:anonymous:@heirloom.cvs.sourceforge.net:/cvsroot/heirloom co -P heirloom-doctools
  rm -rf $srcdir/build
  cd "$srcdir/${pkgname%-*}"
  patch -p1 < ../config.diff
}

build() {
  cd "$srcdir/${pkgname%-*}"
  make
}

package() {
  cd "$srcdir/${pkgname%-*}"
  make install ROOT=$pkgdir
  cd "LICENSE/"
  for i in *.LICENSE COPYING.LGPL; do
    install -Dm0644 $i $pkgdir/usr/share/licenses/${pkgname%-*}/$i
  done
}