+ Rename lua and lua-devel to lua52 and lua52-devel + Modify packages depending on lua52 accordingly: + Many packages auto-detect lua52 files + Some packages need hints where / how to find lua52 + One package (xmoto) downgraded to lua51, because it wouldn't find lua52 + One package (vim) upgraded to lua (5.3.1) There may be more packages upgradable without problems. I didn't want to change too much in this move without the respective package maintainers first taking a look. Most notably conky-cli wouldn't work with lua52. I upgraded it to 1.10.0 (same as conky) and tried to keep the flags the same for the change from gnu-configure to cmake.
45 lines
1.5 KiB
Bash
45 lines
1.5 KiB
Bash
# Template file for 'ipe'
|
|
pkgname=ipe
|
|
version=7.1.8
|
|
revision=5
|
|
_tools_commit=3c1bfb642f53c114262ed732a5f16f0a8ad1649b
|
|
hostmakedepends="pkg-config"
|
|
makedepends="qt-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="https://github.com/otfried/${pkgname}/raw/master/releases/${version%.*}/${pkgname}-${version}-src.tar.gz
|
|
https://github.com/otfried/ipe-tools/archive/$_tools_commit.tar.gz"
|
|
checksum="6a7b8dfb0a012ef9e96b62c317974d910ab6904bef29ae7636d5ac1cb26fa6ff
|
|
7849c0834cff60846cebf4c44fa310e1001ccd6adecd69ada7f0f7d48cd0d114"
|
|
|
|
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
|
|
make ${makejobs} -C ipe-tools/figtoipe
|
|
make ${makejobs} -C ipe-tools/pdftoipe
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|