# Maintainer: Gaetan Bisson # Contributor: Tobias Kieslich # Contributor: tobias pkgname=inkscape pkgver=1.2beta _pkgver=1.2-beta pkgrel=1 pkgdesc='Professional vector graphics editor' url='https://inkscape.org/' license=('GPL' 'LGPL') arch=('x86_64') makedepends=('cmake' 'boost' 'git') depends=( 'dbus-glib' 'double-conversion' 'gc' 'graphicsmagick' 'gsl' 'gspell' 'gtkmm3' 'lcms2' 'lib2geom' 'libcdr' 'libjpeg-turbo' 'libvisio' 'libxslt' 'poppler-glib' 'potrace' 'python' 'ttf-font' ) optdepends=( 'fig2dev: xfig input' 'gvfs: import clip art' 'pstoedit: latex formulas' 'python-lxml: some extensions' 'python-numpy: some extensions' 'scour: optimized SVG output, some extensions' 'texlive-core: latex formulas' ) #source=("https://media.inkscape.org/dl/resources/file/${pkgname}-${pkgver}.tar.bz2") source=("https://inkscape.org/gallery/item/32731/${pkgname}-${_pkgver}.tar.xz") sha256sums=('3d47a44b5ac46cd85988ab0139eff156840207a9d73a7577052a0a83313d650b') _backports=( ) build() { mkdir -p build export PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig' cmake -H${pkgname}-${_pkgver}_2022-04-05_1b65182ce9 -Bbuild \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DWITH_DBUS=ON \ cmake --build build } package() { DESTDIR="${pkgdir}" cmake --build build --target install }