49 lines
1.7 KiB
Bash
49 lines
1.7 KiB
Bash
# Template file for 'ipe'
|
|
pkgname=ipe
|
|
version=7.2.20
|
|
revision=1
|
|
_tools_commit=2480d96e205316115a1febd123403c7d65a292e6
|
|
hostmakedepends="pkg-config qt5-qmake qt5-tools qt5-host-tools"
|
|
makedepends="cairo-devel gsl-devel libcurl-devel libjpeg-turbo-devel
|
|
lua53-devel poppler-devel qt5-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://dl.bintray.com/otfried/generic/ipe/${version%.*}/ipe-${version}-src.tar.gz
|
|
https://github.com/otfried/ipe-tools/archive/${_tools_commit}.tar.gz"
|
|
checksum="2c9389225198047000d70d02be3dbccf40fd9a9ae6efc0968814e4f8d45a8d38
|
|
8b66c274a2b378fca2c91e3cde2c1146e7f64cbc956e48ada51c9eec059619ca"
|
|
nocross="something with gsl"
|
|
|
|
post_extract() {
|
|
mv $XBPS_BUILDDIR/ipe-tools* ipe-tools
|
|
|
|
sed -i 's/xlocale.h/locale.h/g' src/ipelib/ipeplatform.cpp
|
|
sed -i '/cstdio/i#include <sys/types.h>' src/include/ipebase.h
|
|
sed -i '/cstdio/i#include <limits.h>' src/include/ipebase.h
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} -C src IPEPREFIX=/usr LUA_PACKAGE=lua5.3 CXX="$CXX" CXXFLAGS="$CXXFLAGS" MOC=moc-qt5
|
|
make ${makejobs} -C ipe-tools/figtoipe CXX="$CXX" CXXFLAGS="$CXXFLAGS"
|
|
make ${makejobs} -C ipe-tools/pdftoipe CXX="$CXX" CXXFLAGS="$CXXFLAGS"
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|