void-packages/srcpkgs/ipe/template

46 lines
1.5 KiB
Bash
Raw Normal View History

2014-07-24 18:54:08 +02:00
# Template file for 'ipe'
pkgname=ipe
2015-10-25 15:29:51 +01:00
version=7.1.9
revision=1
2015-07-27 12:22:09 +02:00
_tools_commit=3c1bfb642f53c114262ed732a5f16f0a8ad1649b
hostmakedepends="pkg-config"
2015-10-25 15:29:51 +01:00
makedepends="qt5-devel lua52-devel libjpeg-turbo-devel cairo-devel poppler-devel"
2014-07-24 18:54:08 +02:00
short_desc="Drawing editor for creating figures in PDF or EPS formats"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
2014-11-29 23:56:56 +01:00
license="GPL-3, GPL-2"
2015-09-09 13:52:00 +02:00
homepage="http://ipe.otfried.org/"
2015-07-27 12:22:09 +02:00
distfiles="https://github.com/otfried/${pkgname}/raw/master/releases/${version%.*}/${pkgname}-${version}-src.tar.gz
2015-10-25 15:29:51 +01:00
https://github.com/otfried/ipe-tools/archive/$_tools_commit.tar.gz"
checksum="b61eb2674d09c12084cc5715113fa1e6083c28575c86d3b225fe6eaf250133d6
7849c0834cff60846cebf4c44fa310e1001ccd6adecd69ada7f0f7d48cd0d114"
2014-12-06 15:30:54 +01:00
post_extract() {
2015-07-27 12:22:09 +02:00
mv $XBPS_BUILDDIR/ipe-tools* ipe-tools
2015-05-13 20:46:35 +02:00
sed -i 's/xlocale.h/locale.h/g' src/ipelib/ipeplatform.cpp
sed -i '/cstdio/i#include <sys/types.h>' src/include/ipebase.h
}
2014-07-24 18:54:08 +02:00
do_build() {
make ${makejobs} -C src IPEPREFIX=/usr LUA_PACKAGE=lua5.2
2014-12-06 15:30:54 +01:00
make ${makejobs} -C ipe-tools/figtoipe
make ${makejobs} -C ipe-tools/pdftoipe
2014-07-24 18:54:08 +02:00
}
do_install() {
make -C src install IPEPREFIX=/usr LUA_PACKAGE=lua INSTALL_ROOT=${DESTDIR}
2014-12-06 15:30:54 +01:00
vbin ipe-tools/figtoipe/figtoipe
vbin ipe-tools/pdftoipe/pdftoipe
vbin ipe-tools/svgtoipe/svgtoipe.py svgtoipe
2014-07-24 18:54:08 +02:00
}
ipe-devel_package() {
2014-11-23 14:57:08 +01:00
depends="${sourcepkg}>=${version}_${revision}"
2014-11-29 23:56:56 +01:00
short_desc+=" - development files"
2014-11-23 14:57:08 +01:00
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/share/ipe/$version/doc"
}
2014-07-24 18:54:08 +02:00
}