void-packages/srcpkgs/ipe/template

46 lines
1.4 KiB
Bash
Raw Normal View History

2014-07-24 16:54:08 +00:00
# Template file for 'ipe'
pkgname=ipe
2015-02-24 12:34:22 +00:00
version=7.1.7
revision=7
hostmakedepends="pkg-config git"
makedepends="qt-devel lua-devel libjpeg-turbo-devel cairo-devel poppler-devel"
2014-07-24 16:54:08 +00:00
short_desc="Drawing editor for creating figures in PDF or EPS formats"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
2014-11-29 22:56:56 +00:00
license="GPL-3, GPL-2"
2014-07-24 16:54:08 +00:00
homepage="http://ipe7.sourceforge.net/"
2015-07-15 16:46:54 +00:00
distfiles="https://github.com/otfried/${pkgname}/raw/master/releases/${version%.*}/${pkgname}-${version}-src.tar.gz"
2015-02-24 12:34:22 +00:00
checksum=ec670cd7f0fa521271fc54bf9b663570d82280bdbe405be6de59535fec7c00d2
2014-12-06 14:30:54 +00:00
post_extract() {
# ipe-tools
local url="git://github.com/otfried/ipe-tools.git"
msg_normal "Fetching source from ${url}...\n"
2014-12-06 14:30:54 +00:00
git clone ${url} ipe-tools
2015-05-13 18:46:35 +00: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 16:54:08 +00:00
do_build() {
make ${makejobs} -C src IPEPREFIX=/usr LUA_PACKAGE=lua
2014-12-06 14:30:54 +00:00
make ${makejobs} -C ipe-tools/figtoipe
make ${makejobs} -C ipe-tools/pdftoipe
2014-07-24 16:54:08 +00:00
}
do_install() {
make -C src install IPEPREFIX=/usr LUA_PACKAGE=lua INSTALL_ROOT=${DESTDIR}
2014-12-06 14:30:54 +00:00
vbin ipe-tools/figtoipe/figtoipe
vbin ipe-tools/pdftoipe/pdftoipe
vbin ipe-tools/svgtoipe/svgtoipe.py svgtoipe
2014-07-24 16:54:08 +00:00
}
ipe-devel_package() {
2014-11-23 13:57:08 +00:00
depends="${sourcepkg}>=${version}_${revision}"
2014-11-29 22:56:56 +00:00
short_desc+=" - development files"
2014-11-23 13:57:08 +00:00
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/share/ipe/$version/doc"
}
2014-07-24 16:54:08 +00:00
}