void-packages/srcpkgs/ipe/template

54 lines
1.7 KiB
Bash

# Template file for 'ipe'
pkgname=ipe
version=7.2.26
revision=8
_tools_commit=v7.2.24.1
create_wrksrc=yes
hostmakedepends="pkg-config doxygen qt5-qmake qt5-tools qt5-host-tools"
makedepends="cairo-devel gsl-devel libcurl-devel libjpeg-turbo-devel
libspiro-devel lua53-devel poppler-devel qt5-devel qtspell-devel"
depends="qt5-svg"
short_desc="Drawing editor for creating figures in PDF or EPS formats"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="http://ipe.otfried.org/"
distfiles="https://github.com/otfried/ipe/releases/download/v${version}/ipe-${version}-src.tar.gz
https://github.com/otfried/ipe-tools/archive/${_tools_commit}.tar.gz"
checksum="e49d0057913a4a516b2017f00d9adb267903528559d1f0c7ebaf6cd914350aa5
561b18fc2a7ae45c37c5d0390443b37f4585549f09cd7765d856456be24e5dbc"
nocross="something with gsl"
post_extract() {
mv ipe-$version/* .
mv ipe-tools-* ipe-tools
vsed -i 's/xlocale.h/locale.h/g' src/ipelib/ipeplatform.cpp
vsed -i '/cstdio/i#include <sys/types.h>' src/include/ipebase.h
vsed -i '/cstdio/i#include <limits.h>' src/include/ipebase.h
}
do_build() {
export CXX CXXFLAGS
make ${makejobs} -k -C src IPEPREFIX=/usr LUA_PACKAGE=lua5.3 -k
make ${makejobs} -k -C src IPEPREFIX=/usr documentation
make ${makejobs} -k -C ipe-tools/figtoipe
make ${makejobs} -k -C ipe-tools/pdftoipe
}
do_install() {
make -C src install IPEPREFIX=/usr LUA_PACKAGE=lua INSTALL_ROOT=${DESTDIR}
vbin ipe-tools/figtoipe/figtoipe
vbin ipe-tools/pdftoipe/pdftoipe
vbin ipe-tools/svgtoipe/svgtoipe.py svgtoipe
}
ipe-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/share/ipe/$version/doc"
}
}