summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fde938ec7f429befe86c655ded75e585601b05f4 (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
32
33
34
35
36
37
38
# Contributor: Jonathan Liu <net147@hotmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: menta

pkgname=sam2p
pkgver=0.49.4
pkgrel=7
pkgdesc="A bitmap-to-eps-or-pdf-converter that produces very small files"
arch=('i686' 'x86_64')
url="http://www.inf.bme.hu/~pts"
license=('GPL2')
depends=('gcc-libs')
makedepends=('tar')
optdepends=('ghostscript: PS, EPS, PDF support'
	    'libjpeg: JPEG support'
	    'tif22pnm: for tiff support'
	    'png22pnm: for png support')
# 'netpbm: PNG support'
source=("https://github.com/pts/sam2p/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('5bc5b5a526bc798315da23b02564d6a1bfea51b364b8b03f76695a833f6d2bed')
noextract=("$pkgname-$pkgver.tar.gz")

prepare() {
  tar xf $pkgname-$pkgver.tar.gz
}

build() {
  cd $pkgname-$pkgver  
  CXX="g++ --std=c++98" ./configure --prefix=/usr --enable-lzw --enable-gif
  make all
}

package() {
  cd $pkgname-$pkgver
  install -Dm755 sam2p "$pkgdir"/usr/bin/sam2p
  install -Dm755 sam2p_pdf_scale.pl "$pkgdir"/usr/bin/sam2p_pdf_scale
  install -Dm644 README "$pkgdir"/usr/share/sam2p/docs/README
}