36 lines
1.5 KiB
Bash
36 lines
1.5 KiB
Bash
# Template file for 'mypaint'
|
|
pkgname=mypaint
|
|
version=1.2.2
|
|
revision=1
|
|
_sversion=beta.0
|
|
_libcommit=f6278c97aa5af443e30069099c6461b056cdfe63
|
|
wrksrc="${pkgname}-${version}-${_sversion}"
|
|
build_style=scons
|
|
make_build_args="enable_openmp=1 numpy_include=${XBPS_CROSS_BASE}/usr/lib/python2.7/site-packages/numpy/core/include/"
|
|
pycompile_dirs="/usr/share/mypaint"
|
|
hostmakedepends="scons swig pkg-config gettext"
|
|
makedepends="libgomp-devel json-c-devel python-numpy libglib-devel libpng-devel
|
|
lcms2-devel gtk+3-devel python-gobject-devel"
|
|
depends="librsvg python-numpy python-gobject hicolor-icon-theme"
|
|
short_desc="Graphics application for digital painters"
|
|
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://mypaint.org"
|
|
distfiles="https://github.com/mypaint/mypaint/archive/v${version}-${_sversion}.tar.gz
|
|
https://github.com/mypaint/libmypaint/archive/${_libcommit}.tar.gz"
|
|
checksum="c13130f9675787c2f51f38c03ca206aa80984e7673f674569caf3a06e503db08
|
|
bb9579d4d2d2a59b2343aa021887091845e0e8a2ff115312d87b9d975210b263"
|
|
|
|
post_extract() {
|
|
rm -rf "${wrksrc}/brushlib"
|
|
mv "${XBPS_BUILDDIR}/libmypaint-${_libcommit}" "${wrksrc}/brushlib"
|
|
}
|
|
do_install() {
|
|
scons prefix=${DESTDIR}/usr ${make_build_args} install
|
|
# Remove development files
|
|
rm -rf ${DESTDIR}/usr/include
|
|
rm -f ${DESTDIR}/usr/lib/*.a
|
|
rm -rf ${DESTDIR}/usr/lib/pkgconfig
|
|
# Fix SVG icons
|
|
vsed -i 's/xmlns:ns7/xmlns:xlink/g' ${DESTDIR}/usr/share/icons/hicolor/{24x24,scalable}/actions/mypaint-*.svg
|
|
}
|