aboutsummaryrefslogtreecommitdiffstats
path: root/testing/boxes/APKBUILD
blob: 24e80d3b010e549738aca24b6d69ac6a77824cd9 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="boxes"
pkgver="1.3"
pkgrel=0
pkgdesc="Text mode box and comment drawing filter"
url="https://boxes.thomasjensen.com"
arch="all"
license="GPL-2.0"
makedepends="bison flex"
checkdepends="bash"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.zip::https://github.com/ascii-boxes/boxes/archive/v$pkgver.zip
fix-test.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	make GLOBALCONF=/etc/boxes-config
}

check() {
	make test
}

package() {
	install -D -m 644 doc/boxes.1 $pkgdir/usr/share/man/man1/boxes.1
	install -D -m 644 boxes-config $pkgdir/etc/boxes-config
	install -D -m 755 src/boxes $pkgdir/usr/bin/boxes
}

sha512sums="6d3078bb3c365835fe5cbd8a56b0cf98c7f335aa3be3a18c10329c339862525878b8d0d4c1f5bb8ca07dbc8eea47313ee4516b42c26d20d9aef21552f057bf2c  boxes-1.3.zip
0fb90533f56348fa5f91f080eb97e061d44a682c078c08b5409a637e644c784db47b97122daf4235bd3c57b6c07045a4a786bf029a6e0ac9f4a1ba1bcd08f538  fix-test.patch"