summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc9c25fc57aab4d7535738fffccd679bf9ba47b1 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Maintainer : Daniel Bermond <dbermond@archlinux.org>
# Contributor: envolution
# Contributor: FirstAirBender <noblechuk5 [at] web [dot] de>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
# Contributor: Manuel Hüsers <manuel.huesers@uni-ol.de>
# Contributor: forest76 <forestt@poczta.onet.pl>
# Contributor: Tilman Blumenbach <tilman@ax86.net>
# Contributor: Christian Neukirchen <chneukirchen@gmail.com>
# shellcheck shell=bash disable=SC2034,SC2154

pkgname=autotrace-git
pkgver=0.31.10.r157.g84f93a9
pkgrel=1
pkgdesc='A program for converting bitmap to vector graphics (git version)'
arch=('x86_64')
url='https://github.com/autotrace/autotrace/'
license=('GPL-2.0-or-later' 'LGPL-2.1-or-later')
depends=(
    'gcc-libs'
    'glib2'
    'glibc'
    'imagemagick'
    'libpng'
    'pstoedit')
makedepends=(
    'git'
    'intltool')
checkdepends=(
    'ffmpeg'
    'procps-ng')
provides=('autotrace')
conflicts=('autotrace')
source=('git+https://github.com/autotrace/autotrace.git')
sha256sums=('SKIP')

prepare() {
    cd autotrace
    ./autogen.sh
}

pkgver() {
    git -C autotrace describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cd autotrace
    ./configure \
        --prefix='/usr' \
        --disable-static \
        --with-magick \
        --with-png \
        --with-pstoedit
    make
    sed -i "s|@MAGICK_LIBS@|$(pkg-config --libs ImageMagick)|" autotrace.pc
}

check() {
    make -C autotrace check
}

package() {
    make -C autotrace DESTDIR="$pkgdir" install
}