void-packages/srcpkgs/ipe/template

46 lines
1.6 KiB
Bash

# Template file for 'ipe'
pkgname=ipe
version=7.2.9
revision=1
_tools_commit=133240f6cee4a0432be12620897226d5c2e81d1c
hostmakedepends="pkg-config qt5-qmake qt5-tools qt5-host-tools"
makedepends="qt5-devel lua52-devel libjpeg-turbo-devel cairo-devel poppler-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="b687ac78cf0a7d8310e7ff952f9c84057065bb34c739e147036bed2e060610c4
bf806c38fd280ebec542977f271fa1f41072f6dcd64156c8ebe56bf03321da37"
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
}
do_build() {
make ${makejobs} -C src IPEPREFIX=/usr LUA_PACKAGE=lua5.2 CXX="$CXX" CXXFLAGS="$CXXFLAGS"
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"
}
}