aboutsummaryrefslogtreecommitdiffstats
path: root/community/a2ps/APKBUILD
blob: 6ead2899f6423079355e878740d850acd2d9b2fa (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
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=a2ps
pkgver=4.15.5
pkgrel=0
pkgdesc="a2ps is an Any to PostScript filter"
url="https://www.gnu.org/software/a2ps/"
# x86: segfaults all tests
# arm*: sigills in all tests
arch="all !x86 !armhf !armv7"
license="GPL-3.0-or-later"
depends="
	ghostscript
	imagemagick
	perl
	"
makedepends="
	gc-dev
	gperf
	libpaper-dev
	"
subpackages="$pkgname-doc $pkgname-emacs::noarch"
source="https://ftp.gnu.org/gnu/a2ps/a2ps-$pkgver.tar.gz
	failing-test.patch
	"

build() {
	CFLAGS="$CFLAGS -flto=auto" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/a2ps \
		--includedir=/usr/include \
		--disable-nls
	make
}

check() {
	make check || {
		cat tests/test-suite.log
		return 1
	}
}

package() {
	make DESTDIR="$pkgdir" install
}

emacs() {
	pkgdesc="$pkgdesc (emacs plugin)"
	install_if="$pkgname=$pkgver-r$pkgrel emacs"

	amove usr/share/emacs
}

sha512sums="
e9953659139a46aed46e190d5485382a9e396ae8bbbe59edb78ab3110e7839a764e3cb6ff94f5f36e6e91fcaf85f6352376e0b4a0e0141f24e098fa334b5015e  a2ps-4.15.5.tar.gz
4263f1ed74a9c3ae70c92954b8d91ca5807668be3825411902e4b9871f6d08ffb981996e7bc10f807d2e7ce82fbb4a485e304ec74d6cb25e8570b5fc0cb5c3e0  failing-test.patch
"