# Maintainer: Natanael Copa 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 "