2024-12-31 05:08:24 +00:00

55 lines
1.2 KiB
Plaintext

# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: mio <miyopan@e.email>
maintainer="mio <miyopan@e.email>"
pkgname=fig2dev
pkgver=3.2.9a
pkgrel=0
pkgdesc="translates Fig code to other graphic description languages"
url="https://sourceforge.net/projects/mcj/"
arch="all"
license="Xfig"
makedepends="
diffutils
ghostscript
gzip
imagemagick
libpng-dev
netpbm
zlib-dev
"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/mcj/fig2dev-$pkgver.tar.xz
COPYING
"
# secfixes:
# 3.2.8b-r0:
# - CVE-2021-37529
# - CVE-2021-37530
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-transfig
make
}
check() {
# Temporarily skip failed tests (110 tests run, 2 failed, 4 skipped)
# 20: read compressed image files, 96: gif
make check TESTSUITEFLAGS="1-19 21-95 97-110"
}
package() {
make DESTDIR="$pkgdir" install
install -Dm644 ../COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
ffc56ef0bb3313d6650819c5a5bbf3c532c01a9649a1c424ade977411765cb413ef032d162695e14207918bbb535cb0a98e69df9060dd706c0c9d19d4f9435cc fig2dev-3.2.9a.tar.xz
0289c266555028702e15749e557c7f17eaecc908f61458dbcfc118f547dbfb831351ec7cfce290368d343a7d7e9fa6914e81103312d94939938571f2acdc9424 COPYING
"