spacepaste

 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
40
41
42
43
44
45
# Contributor: forest76 <forestt@poczta.onet.pl>
# Contributor: Tilman Blumenbach <tilman@ax86.net>
# Contributor: Christian Neukirchen <chneukirchen@gmail.com>

pkgname=autotrace
pkgver=0.31.1
pkgrel=11
pkgdesc='An utility to trace bitmaps: convert bitmaps to vector graphics'
arch=('i686' 'x86_64')
url='http://autotrace.sourceforge.net/'
license=('GPL' 'LGPL')
depends=('pstoedit' 'imagemagick>=6.5.3.10')
makedepends=('pkg-config' 'autoconf')
options=('!libtool')
source=(http://downloads.sourceforge.net/autotrace/$pkgname-$pkgver.tar.gz
        build-fixes.patch libpng-1.5.patch configure.in.patch)
md5sums=('54eabbb38d2076ded6d271e1ee4d0783'
         'f44a610e531543f99271e389f8dc53c3'
         '55881b817aeae6b3bd6dfca9b2320ca3'
         'c244feb9f17f717d6369471ab90fd71b')

build() {
    _configure_args='--prefix=/usr'
    if [ `/usr/bin/pacman -Q pstoedit | cut -d ' ' -f 2` = '3.50-3' ]; then
        # This version of the pstoedit package is broken (FS #19221).
        warning \
            'Broken pstoedit package found, disabling pstoedit support in AutoTrace.'
        _configure_args="${_configure_args} --without-pstoedit"
    fi

    cd "${srcdir}/${pkgname}-${pkgver}"
    patch -Np 1 -i "${srcdir}/build-fixes.patch"
    patch -Np 0 -i "${srcdir}/libpng-1.5.patch"
    patch -Np 1 -i "${srcdir}/configure.in.patch"
    mv configure.in configure.ac

    autoreconf -fi
    ./configure ${_configure_args}
    make
}

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