From e7e309ce54a7d794b046519d4f51e2710862628c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Thu, 9 Jan 2014 08:35:32 -0200 Subject: ghostscript-libre: add mksource --- libre/ghostscript-libre/PKGBUILD | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libre/ghostscript-libre/PKGBUILD b/libre/ghostscript-libre/PKGBUILD index 4db0709fc..bb2428b75 100644 --- a/libre/ghostscript-libre/PKGBUILD +++ b/libre/ghostscript-libre/PKGBUILD @@ -21,17 +21,23 @@ conflicts=('ghostscript') replaces=('ghostscript') provides=("ghostscript=$pkgver") url="http://www.ghostscript.com/" -source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2) +mksource=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2) +source=(https://repo.parabolagnulinux.org/sources/ghostscript-libre-${pkgver}.tar.bz2) options=('!libtool' '!makeflags') -md5sums=('7179bb1ed4f6f453147e6f7e1f210ce8') +mkmd5sums=('7179bb1ed4f6f453147e6f7e1f210ce8') +md5sums=('c9f6ffec6a07e06caba394d7ebdbbe9a') -build() { +mksource() { cd ghostscript-${pkgver} - + # delete nonfree files grep -l "are not altered" Resource/CMap/* | xargs rm -fv grep -l "not be copied" Resource/CMap/* | xargs rm -fv +} +build() { + cd ghostscript-${pkgver} + # force it to use system-libs rm -rf jpeg libpng zlib jasper expat tiff lcms lcms2 freetype openjpeg cups/libs # jbig2dec is in community -- cgit v1.2.3-2-g168b