contrib/inkscape/Pkgfile

57 lines
1.7 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/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: boehm-gc boost double-conversion gsl gtkmm3 libsoup libxslt poppler-glib popt potrace gdl
2011-11-09 09:18:13 +01:00
name=inkscape
version=1.0
release=1
source=(https://media.inkscape.org/dl/resources/file/$name-$version.tar.xz
https://poppler.freedesktop.org/poppler-0.88.0.tar.xz)
2011-11-09 09:18:13 +01:00
poppler() {
cmake -Spoppler-0.88.0 -Bbuild-poppler -GNinja \
2020-05-28 17:45:50 +02:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
-DENABLE_UTILS=ON \
-DENABLE_SPLASH=ON \
-DENABLE_CPP=ON \
-DENABLE_GLIB=ON \
-DENABLE_QT5=OFF \
-DENABLE_ZLIB=ON \
-DENABLE_CMS=lcms2 \
-DENABLE_LIBOPENJPEG=none \
-DWITH_NSS3=OFF
2020-05-28 17:45:50 +02:00
cmake --build build-poppler
DESTDIR=$SRC/poppler cmake --build build-poppler --target install
2020-05-28 17:45:50 +02:00
install -D -t $PKG/usr/lib $SRC/poppler/usr/lib/libpoppler.so.99
2020-05-28 17:45:50 +02:00
export CXXFLAGS+=" -I$SRC/poppler/usr/include -I$SRC/poppler/usr/include/poppler"
export PKG_CONFIG_PATH="$SRC/poppler/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
}
2011-11-09 09:18:13 +01:00
build() {
[ ! -e '/usr/lib/libpoppler.so.99' ] && poppler
2017-02-11 06:29:26 +01:00
export PKG_CONFIG_PATH="/usr/lib/imagemagick6/pkgconfig:$PKG_CONFIG_PATH"
cmake -S$name-${version}_2020-05-01_4035a4fb49 -Bbuild -GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
2011-11-09 09:18:13 +01: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
rm -r $PKG/usr/share/man/?? \
$PKG/usr/share/locale \
$PKG/usr/share/inkscape/doc
2012-03-02 13:29:46 +01:00
rm $PKG/usr/share/inkscape/extensions/README.md \
$PKG/usr/share/inkscape/extensions/inkex/deprecated-simple/README.rst \
2011-11-09 09:18:13 +01:00
find $PKG/usr/share/inkscape -name README -exec rm -f {} +
/usr/bin/python3 -mcompileall $PKG
2011-11-09 09:18:13 +01:00
}