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/
|
2023-03-06 04:04:37 +01:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2021-01-31 08:07:06 +01:00
|
|
|
# Depends on: boehm-gc boost double-conversion graphicsmagick gsl gtkmm3 libsoup libxslt poppler-glib popt potrace gdl
|
2011-11-09 09:18:13 +01:00
|
|
|
|
|
|
|
name=inkscape
|
2022-12-09 22:43:11 +01:00
|
|
|
version=1.2.2
|
2022-12-17 16:24:20 +01:00
|
|
|
release=3
|
2023-03-06 04:04:37 +01:00
|
|
|
source=(https://inkscape.org/gallery/item/37360/inkscape-$version.tar.xz)
|
2019-12-04 12:52:25 +01:00
|
|
|
|
2011-11-09 09:18:13 +01:00
|
|
|
build() {
|
2021-04-03 02:51:15 +02:00
|
|
|
# https://gitlab.gnome.org/GNOME/glib/-/issues/2331
|
2022-09-30 00:44:29 +02:00
|
|
|
CFLAGS+=' -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_66 -L/usr/lib/inkscape'
|
|
|
|
CXXFLAGS+=' -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_66 -L/usr/lib/inkscape'
|
|
|
|
export LDFLAGS+=" -Wl,-rpath=/usr/lib/inkscape"
|
2017-02-11 06:29:26 +01:00
|
|
|
|
2023-03-06 04:04:37 +01:00
|
|
|
cmake -S inkscape-${version}* -B build -G Ninja \
|
2020-11-08 12:19:41 +01:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2021-06-19 15:14:58 +02:00
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
2020-11-08 12:19:41 +01:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:54:57 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2021-09-19 08:59:21 +02:00
|
|
|
-D WITH_INTERNAL_2GEOM=ON \
|
2020-11-08 10:05:08 +01:00
|
|
|
-Wno-dev
|
|
|
|
|
2020-05-28 17:02:37 +02:00
|
|
|
cmake --build build
|
2020-07-08 15:01:36 +02:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2011-11-09 09:18:13 +01:00
|
|
|
|
2020-05-28 17:02:37 +02:00
|
|
|
rm -r $PKG/usr/share/man/?? \
|
|
|
|
$PKG/usr/share/locale \
|
|
|
|
$PKG/usr/share/inkscape/doc
|
2012-03-02 13:29:46 +01:00
|
|
|
|
2023-03-06 04:04:37 +01:00
|
|
|
find $PKG/usr/share/inkscape \( -name 'README' -o -name 'README.*' \) -delete
|
2021-01-31 08:07:06 +01:00
|
|
|
|
2020-05-28 17:02:37 +02:00
|
|
|
/usr/bin/python3 -mcompileall $PKG
|
2021-01-31 08:07:06 +01:00
|
|
|
/usr/bin/python3 -O -m compileall $PKG
|
|
|
|
/usr/bin/python3 -OO -m compileall $PKG
|
2022-11-13 17:19:30 +01:00
|
|
|
|
2023-03-06 04:04:37 +01:00
|
|
|
rm -rf $PKG/usr/share/man/zh_TW \
|
|
|
|
$PKG/usr/share/man/pt_BR
|
2011-11-09 09:18:13 +01:00
|
|
|
}
|