contrib/inkscape/Pkgfile

42 lines
1.4 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-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
source=(https://inkscape.org/gallery/item/37360/inkscape-$version.tar.xz)
2011-11-09 09:18:13 +01:00
build() {
# 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
cmake -S inkscape-${version}* -B build -G Ninja \
2020-11-08 12:19:41 +01:00
-D CMAKE_INSTALL_PREFIX=/usr \
-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" \
-D WITH_INTERNAL_2GEOM=ON \
2020-11-08 10:05:08 +01:00
-Wno-dev
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2011-11-09 09:18:13 +01:00
rm -r $PKG/usr/share/man/?? \
$PKG/usr/share/locale \
$PKG/usr/share/inkscape/doc
2012-03-02 13:29:46 +01:00
find $PKG/usr/share/inkscape \( -name 'README' -o -name 'README.*' \) -delete
/usr/bin/python3 -mcompileall $PKG
/usr/bin/python3 -O -m compileall $PKG
/usr/bin/python3 -OO -m compileall $PKG
2022-11-13 17:19:30 +01:00
rm -rf $PKG/usr/share/man/zh_TW \
$PKG/usr/share/man/pt_BR
2011-11-09 09:18:13 +01:00
}