summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6250a97ec07cdda9388b47ccd87054e3f9136011 (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
39
# Maintainer: nemesys <nemstar zoho com>
# Contributor: MichaƂ Lisowski <lisu@riseup.net>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=exact-image
pkgver=1.0.2
pkgrel=3
pkgdesc="Fast image manipulation programs"
arch=('i686' 'x86_64')
url="http://exactcode.com/opensource/exactimage/"
license=('GPL2')
depends=('agg' 'jasper' 'expat' 'libtiff')
source=("http://dl.exactcode.de/oss/exact-image/$pkgname-$pkgver.tar.bz2"
        "$pkgname-c-98.patch"
        "$pkgname-const.patch"
        "$pkgname-types.patch")
sha256sums=('0694c66be5dec41377acead475de69b3d7ffb42c702402f8b713f8b44cdc2791'
            '28509a0affb04336b16c8a8eddb19962a90f801743b76234e56e7d985df68293'
            '2261015fbf19f48686f7c16c70295dbc71392c31426b469d45169d563dfa9e37'
            '1a1f35db1287981065367f95b1a7e5098ecf53576176ada2653a1dabfa94264d')

prepare() {
	cd "$pkgname-$pkgver"
	patch -p1 -i "$srcdir"/$pkgname-c-98.patch
	patch -p1 -i "$srcdir"/$pkgname-types.patch
	patch -p1 -i "$srcdir"/$pkgname-const.patch
	sed -i 's+site_perl+5.30/vendor_perl+' api/perl/Makefile
}

build() {
	cd "$pkgname-$pkgver"
	./configure --prefix=/usr --without-python --without-php --without-libgif --without-openexr
	make
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}