Date: Wednesday, February 2, 2022 @ 08:44:00 Author: felixonmars Revision: 435761
archrelease: copy trunk to staging-x86_64 Added: inkscape/repos/staging-x86_64/ inkscape/repos/staging-x86_64/PKGBUILD (from rev 435760, inkscape/trunk/PKGBUILD) ----------+ PKGBUILD | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) Copied: inkscape/repos/staging-x86_64/PKGBUILD (from rev 435760, inkscape/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2022-02-02 08:44:00 UTC (rev 435761) @@ -0,0 +1,82 @@ +# Maintainer: Gaetan Bisson <bis...@archlinux.org> +# Contributor: Tobias Kieslich <tob...@justdreams.de> +# Contributor: tobias <tob...@archlinux.org> + +pkgname=inkscape +pkgver=1.1.1 +_tag='3bf5ae0d25c673abe152dedf4789a2d6f0cc60ff' # git rev-parse INKSCAPE_${pkgver/./_} +pkgrel=8 +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=("git+https://gitlab.com/inkscape/inkscape.git#tag=${_tag}") +sha256sums=('SKIP') + +_backports=( + # Fix build with poppler 21.11.0 + '5724c21b9cb7b6176a7b36ca24068b148c817e82' + + # Remove mandatory break from end of paragraphs, added in Pango 1.49. + 'b3dabef2245d4e4e977ee9d6776be9a134493515' +) + +prepare() { + cd "${pkgname}" + git submodule init + git submodule update + + local _c + for _c in "${_backports[@]}"; do + git log --oneline -1 "${_c}" + git cherry-pick -n "${_c}" + done +} + +build() { + mkdir -p build + export PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig' + cmake -H${pkgname} -Bbuild \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DWITH_DBUS=ON \ + + cmake --build build +} + +package() { + DESTDIR="${pkgdir}" cmake --build build --target install +}