summaryrefslogtreecommitdiff
path: root/libre/ghostscript-libre/SRCBUILD
blob: d7cac0a7637d6ca4f4027c669e89c6ea69362cd7 (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
# $Id: PKGBUILD 123066 2011-05-07 23:01:49Z stephane $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Maintainer (Parabola): xihh

pkgname=ghostscript-libre
pkgver=9.04
pkgrel=5
pkgdesc="An interpreter for the PostScript language without non-free files"
arch=('any')
license=('GPL3') #non free files removed
url="http://www.ghostscript.com/"
source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2)
md5sums=('9f6899e821ab6d78ab2c856f10fa3023')
options=(!strip !docs !libtool !emptydirs !zipman !purge)

build() {
  cd ${srcdir}/ghostscript-${pkgver}

  export PKGEXT=.src.tar.xz
  
  # delete non-free packages
  grep -l "are not altered" Resource/CMap/* | xargs rm -fv
}

package() {
  cd ${srcdir}
  export PKGEXT=.src.tar.xz

  mv ghostscript-${pkgver} ${pkgdir}/

}