void-packages/srcpkgs/mypaint/template
2016-01-17 13:45:33 -05:00

32 lines
1 KiB
Bash

# Template file for 'mypaint'
pkgname=mypaint
version=1.2.0
revision=3
hostmakedepends="unzip scons swig pkg-config"
makedepends="libgomp-devel json-c-devel python-numpy libglib-devel libpng-devel
lcms2-devel gtk+3-devel python-gobject-devel"
depends="pygtk python-numpy python-gobject"
pycompile_dirs="/usr/share/mypaint"
short_desc="Graphics application for digital painters"
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
license="GPL-2"
homepage="http://mypaint.org"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=b6f0ddcbb61535a712c9214ac88a2d624ddc998a1d2b47c11c2e9b09b461c041
wrksrc=${pkgname}-${version}
pre_build() {
${XBPS_FETCH_CMD} https://github.com/mypaint/libmypaint/archive/master.zip
unzip master.zip
mv libmypaint-master/* brushlib/
}
do_build() {
scons ${makejobs} enable_openmp=1
}
do_install() {
scons prefix=${DESTDIR}/usr enable_openmp=1 install
# Remove development files
rm -rf ${DESTDIR}/usr/include
rm -f ${DESTDIR}/usr/lib/*.a
rm -rf ${DESTDIR}/usr/lib/pkgconfig
}