contrib/inkscape/Pkgfile

45 lines
1.6 KiB
Plaintext
Raw Normal View History

2011-11-09 09:18:13 +01:00
# Description: An open source SVG editor.
2017-02-11 06:29:26 +01:00
# URL: https://www.inkscape.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: boehm-gc boost double-conversion graphicsmagick gsl gtkmm3 libsoup libxslt poppler popt potrace gdl
2011-11-09 09:18:13 +01:00
name=inkscape
2023-11-29 23:57:22 +01:00
version=1.3.2
2023-07-24 03:04:31 +02:00
release=1
source=(https://media.inkscape.org/dl/resources/file/$name-$version.tar.xz)
2011-11-09 09:18:13 +01:00
build() {
[ -e /usr/include/poppler/glib/poppler.h ] || { echo "install glib and then rebuild poppler, you need it for ${name}."; exit 1; }
2023-07-24 03:04:31 +02:00
export LDFLAGS+=" -Wl,-rpath=/usr/lib/inkscape"
2023-11-29 23:57:22 +01:00
# add missing header file (merge request 6089)
sed -e '/^#include <libxml.uri/a #include <libxml/xmlmemory.h>' \
-i inkscape-${version}*/src/object/uri.h
2023-07-24 03:04:31 +02:00
cmake -S inkscape-${version}* -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="-L/usr/lib/inkscape" \
-D CMAKE_C_FLAGS_RELEASE="-L/usr/lib/inkscape" \
-D WITH_INTERNAL_2GEOM=ON \
-D WITH_NLS=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/man/?? \
$PKG/usr/share/man/??_?? \
$PKG/usr/share/inkscape/doc
find $PKG/usr/share/inkscape \( -name 'README' -o -name 'README.*' \
-o -name 'LICENSE.txt' \) -delete
prt-get isinst bash-completion || rm -rf $PKG/usr/share/bash-completion
2023-11-29 23:57:22 +01:00
/usr/bin/python3 -m compileall $PKG
2023-07-24 03:04:31 +02:00
/usr/bin/python3 -O -m compileall $PKG
/usr/bin/python3 -OO -m compileall $PKG
2011-11-09 09:18:13 +01:00
}