diff options
author | J0WI <J0WI@users.noreply.github.com> | 2019-06-13 14:03:05 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-14 12:02:30 +0000 |
commit | b1d226252fdb0977575213d604ed7bf363e3cc97 (patch) | |
tree | 8b4188d40feddb26d7a43f528542b0e00c527897 /main/ghostscript/APKBUILD | |
parent | 4a6b944d7f41bda3c7ae8225472895eea4b26f3f (diff) | |
download | aports-b1d226252fdb0977575213d604ed7bf363e3cc97.tar.bz2 aports-b1d226252fdb0977575213d604ed7bf363e3cc97.tar.xz |
main/ghostscript: modernize
Diffstat (limited to 'main/ghostscript/APKBUILD')
-rw-r--r-- | main/ghostscript/APKBUILD | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/main/ghostscript/APKBUILD b/main/ghostscript/APKBUILD index f0a7d74bc4..34ec8dc1f1 100644 --- a/main/ghostscript/APKBUILD +++ b/main/ghostscript/APKBUILD @@ -2,11 +2,12 @@ # Maintainer: Cameron Banta <cbanta@gmail.com> pkgname=ghostscript pkgver=9.27 -pkgrel=0 +pkgrel=1 pkgdesc="An interpreter for the PostScript language and for PDF" url="https://ghostscript.com/" arch="all" -license="GPL-3.0" +license="AGPL-3.0-or-later" +options="!check" makedepends="autoconf automake libjpeg-turbo-dev libpng-dev jasper-dev expat-dev zlib-dev tiff-dev freetype-dev lcms2-dev gtk+3.0-dev cups-dev libtool jbig2dec-dev openjpeg-dev" @@ -52,17 +53,17 @@ builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" - default_prepare || return 1 # apply patches + default_prepare # apply patches # force it to use system-libs rm -r jpeg libpng zlib tiff lcms2mt cups/libs jbig2dec \ - freetype || return 1 + freetype # fix parallel builds sed -i -e 's/ECHO_XE/ECHOGS_XE/g' \ -e 's/^\($(GLOBJ)md5.$(OBJ) :.*\)/\1 $(ECHOGS_XE)/' \ - base/lib.mak || return 1 - aclocal && autoconf --force || return 1 + base/lib.mak + aclocal && autoconf --force cd $builddir/ijs libtoolize --force && aclocal && autoconf && automake --add-missing @@ -106,20 +107,14 @@ build(){ package() { cd "$builddir" - make -j1 DESTDIR="$pkgdir" install soinstall || return 1 + make -j1 DESTDIR="$pkgdir" install soinstall cd "$builddir"/ijs - make -j1 DESTDIR="$pkgdir" install || return 1 + make -j1 DESTDIR="$pkgdir" install cd .. # create empty dir for future fonts mkdir -p "${pkgdir}"/usr/share/fonts/Type1 - - # license and copying - install -m644 -D "$srcdir/$pkgname-$pkgver/LICENSE" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -m644 -D "$srcdir/$pkgname-$pkgver/doc/COPYING" \ - "$pkgdir/usr/share/licenses/$pkgname/COPYING" } gtk() { |