50 lines
1.7 KiB
Bash
50 lines
1.7 KiB
Bash
# Template file for 'ipe'
|
|
pkgname=ipe
|
|
version=7.2.24
|
|
revision=3
|
|
_tools_commit=v7.2.20.1
|
|
hostmakedepends="pkg-config doxygen qt5-qmake qt5-tools qt5-host-tools"
|
|
makedepends="cairo-devel gsl-devel libcurl-devel libjpeg-turbo-devel
|
|
lua53-devel poppler-devel qt5-devel libspiro-devel"
|
|
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="feb879f24d1dce25910790770446d50b03e46ee2ebd7d28157b1705971644f6f
|
|
233f5629986ade3d70de6dd1af85d578d6aa0f92f9bcd1ecd4e8e5a94b508376"
|
|
nocross="something with gsl"
|
|
|
|
post_extract() {
|
|
mv $XBPS_BUILDDIR/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"
|
|
}
|
|
}
|