void-packages/srcpkgs/ipe/template
2016-12-16 08:24:47 +00:00

46 lines
1.6 KiB
Bash

# Template file for 'ipe'
pkgname=ipe
version=7.2.7
revision=3
_tools_commit=e5b23399a83d69fd5bb5d4645ef7325b4b57435b
hostmakedepends="pkg-config qt5-qmake qt5-tools qt5-host-tools wget"
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="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3, GPL-2"
homepage="http://ipe.otfried.org/"
distfiles="http://dl.bintray.com/otfried/generic/ipe/${version%.*}/${pkgname}-${version}-src.tar.gz
https://github.com/otfried/ipe-tools/archive/${_tools_commit}.tar.gz"
checksum="d66d3f2619e3e6ff617f42c2e3695c3db6e2a64adcc3d7613214e5fd14c49f22
60a96ad4674fc8f3c2d8bd8ab789734dbb47cabed09a178f595b0e478a526442"
XBPS_FETCH_CMD=wget # nothing else speaks with that terrible crappy host
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"
make ${makejobs} -C ipe-tools/figtoipe CXX="$CXX"
make ${makejobs} -C ipe-tools/pdftoipe CXX="$CXX"
}
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"
}
}