aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-06-09 21:59:53 +0200
committerAriadne Conill <ariadne@dereferenced.org>2021-06-09 21:24:56 +0000
commit0a4f8e4e4d21ac8c83a85c534f6424f03a3b7a70 (patch)
tree28eeacd57758960504891e6470d86a4b0b1e7222
parent56de3a38c80776d078ec4d7998214c507978c4d0 (diff)
downloadaports-0a4f8e4e4d21ac8c83a85c534f6424f03a3b7a70.tar.gz
aports-0a4f8e4e4d21ac8c83a85c534f6424f03a3b7a70.tar.bz2
aports-0a4f8e4e4d21ac8c83a85c534f6424f03a3b7a70.tar.xz
community/a2ps: fix build on riscv64 and modernize
-rw-r--r--community/a2ps/APKBUILD35
1 files changed, 14 insertions, 21 deletions
diff --git a/community/a2ps/APKBUILD b/community/a2ps/APKBUILD
index 85bf67f351..682d23535c 100644
--- a/community/a2ps/APKBUILD
+++ b/community/a2ps/APKBUILD
@@ -1,16 +1,15 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=a2ps
pkgver=4.14
-pkgrel=8
+pkgrel=9
pkgdesc="a2ps is an Any to PostScript filter"
url="https://www.gnu.org/software/a2ps/"
arch="all"
license="GPL-3.0"
depends="ghostscript imagemagick perl"
makedepends="gperf autoconf automake libtool"
-install=
subpackages="$pkgname-dev $pkgname-doc"
-source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
+source="https://ftp.gnu.org/gnu/a2ps/a2ps-$pkgver.tar.gz
$pkgname-4.13c-fnmatch-replacement.patch
$pkgname-4.13c-emacs.patch
$pkgname-4.13-manpage-chmod.patch
@@ -24,37 +23,31 @@ source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
"
prepare() {
- cd "$srcdir"/$pkgname-$pkgver
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- sed -i -e 's/__mempcpy/mempcpy/g' lib/strftime.c src/regex.c \
- || return 1
- rm -f aclocal.m4 */aclocal.m4
- libtoolize --force --copy || return 1
- aclocal -I m4 && automake --add-missing && autoreconf -I m4 || return 1
+ default_prepare
+
+ update_config_sub
+ update_config_guess
+
+ sed -i -e 's/__mempcpy/mempcpy/g' lib/strftime.c src/regex.c
+ rm -f aclocal.m4 ./*/aclocal.m4
+ libtoolize --force --copy
+ aclocal -I m4 && automake --add-missing && autoreconf -I m4
}
build() {
- cd "$srcdir"/$pkgname-$pkgver
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc/a2ps \
--includedir=/usr/include \
- --disable-nls \
- || return 1
+ --disable-nls
make
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
- make -j1 DESTDIR="$pkgdir" install || return 1
- sed -i "s:^countdictstack: \0:" "$pkgdir"/usr/bin/psset || return 1
+ make -j1 DESTDIR="$pkgdir" install
+ sed -i "s:^countdictstack: \0:" "$pkgdir"/usr/bin/psset
}
sha512sums="fd6ac8ab47d789114c283e8ca508f7f56feabd1a189f4ac772cad9e6be7e3791e210892cfffd04ad1d39efe4b15386b2e61bf4cd56b70ed581c0554f36bfe06f a2ps-4.14.tar.gz