blob: 7b93a20347de7f56724785c94aebb19ff789813e (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=autotrace-nomagick
pkgver=0.31.10
pkgrel=2
epoch=1
pkgdesc='A program for converting bitmap to vector graphics (no ImageMagick dependency)'
arch=('x86_64')
url='https://github.com/autotrace/autotrace/'
license=('GPL-2.0-or-later' 'LGPL-2.1-or-later')
depends=('glib2' 'libpng' 'ming' 'pstoedit-nomagick')
makedepends=('intltool')
#checkdepends=('procps-ng')
provides=('autotrace')
conflicts=('autotrace')
BUILDENV+=('!check') # tests currently needs imagemagick for working
source=("https://github.com/autotrace/autotrace/archive/${pkgver}/autotrace-${pkgver}.tar.gz"
'010-autotrace-fix-swf-output.patch')
sha256sums=('14627f93bb02fe14eeda0163434a7cb9b1f316c0f1727f0bdf6323a831ffe80d'
'c0698678cb37b4a82d732f113ad4829d1b453d9db18001ffbe3044697b4852bc')
prepare() {
cd "autotrace-${pkgver}"
patch -Np1 -i "${srcdir}/010-autotrace-fix-swf-output.patch"
./autogen.sh
}
build() {
cd "autotrace-${pkgver}"
# fix build with gcc 14
export CFLAGS+=' -Wno-incompatible-pointer-types'
./configure \
--prefix='/usr' \
--disable-static \
--without-magick \
--with-png \
--with-pstoedit
make
sed -i 's/[[:space:]]@MAGICK_LIBS@//;s/[[:space:]]@MAGICK_CFLAGS@//' autotrace.pc
}
check() {
make -C "autotrace-${pkgver}" check
}
package() {
make -C "autotrace-${pkgver}" DESTDIR="$pkgdir" install
}
|