pkgname=inkscape pkgver=1.3.2 _commit=2023-11-25_091e20ef0f pkgrel=4 pkgdesc="A vector-based drawing program - svg compliant" url="https://inkscape.org/en/" arch=('x86_64') license=('GPL' 'LGPL') depends=('poppler' 'graphicsmagick' 'aspell' 'gc' 'gtkmm3' 'libxslt' 'gsl' 'desktop-file-utils' 'hicolor-icon-theme' 'python3-lxml' 'python3-numpy' 'libwpg' 'libvisio' 'libwpd' 'potrace' 'python3' 'dbus-glib' 'double-conversion' 'libsoup' 'gdl' 'libcdr') makedepends=('boost' 'pkg-config' 'intltool') options=('!libtool') source=("https://media.inkscape.org/dl/resources/file/${pkgname}-${pkgver}.tar.xz" "https://gitlab.com/inkscape/inkscape/-/commit//694d8ae43d06efff21adebf377ce614d660b24cd.diff" "https://gitlab.com/a17r/inkscape/-/commit/3dd9846ab99260134e11938f0e575be822507037.diff") #source=("https://inkscape.org/en/gallery/item/10682/inkscape-${pkgver}.tar.bz2") sha256sums=('dbd1844dc443fe5e10d3e9a887144e5fb7223852fff191cfb5ef7adeab0e086b' 'c2b6f4e74883e7f6f74283d9cf70997a344159c1e5cb9022237d14936efb3683' '25d3026afd5315be4da390834108d7e72631d91c86270af5aa7e10355dabe720') prepare() { cd ${pkgname}-${pkgver}_${_commit} # libxml2 2.12 needed patch -p1 -i ${srcdir}/694d8ae43d06efff21adebf377ce614d660b24cd.diff # poppler 24.03 needed patch -p1 -i ${srcdir}/3dd9846ab99260134e11938f0e575be822507037.diff } build() { cmake -B build -S ${pkgname}-${pkgver}_${_commit} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_LIBCDR=ON cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }