aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tbl/APKBUILD
blob: 5860c4c3e3ee322083a919b07f464b1eeef7424c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tbl
pkgver=0.1.5
pkgrel=0
pkgdesc="Utility to format tables for troff"
url="http://tbl.bsd.lv/"
arch="all"
license="ISC"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
source="http://tbl.bsd.lv/snapshots/tbl-$pkgver.tar.gz
	tbl-install.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch)
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr MANDIR=/usr/share/man install
}

md5sums="633edde9037b0a01b045b05e655ee7c9  tbl-0.1.5.tar.gz
e4f29245b659de9814ff1a7a1c98ffb2  tbl-install.patch"