From e2fc377714b29f9b8368656f9baddac91553d343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BChlinghaus?= Date: Wed, 1 Jan 2020 15:50:06 +0100 Subject: [PATCH] mypaint: update to 1.2.2 --- srcpkgs/mypaint/template | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/srcpkgs/mypaint/template b/srcpkgs/mypaint/template index 75bbd965d7e..25f0c084636 100644 --- a/srcpkgs/mypaint/template +++ b/srcpkgs/mypaint/template @@ -1,19 +1,28 @@ # Template file for 'mypaint' pkgname=mypaint -version=1.2.1 -revision=5 +version=1.2.2 +revision=1 hostmakedepends="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="librsvg python-numpy python-gobject" +depends="librsvg python-numpy python-gobject hicolor-icon-theme" pycompile_dirs="/usr/share/mypaint" short_desc="Graphics application for digital painters" maintainer="Stefan Mühlinghaus " -license="GPL-2" +license="GPL-2.0-or-later" homepage="http://mypaint.org" -distfiles="https://github.com/mypaint/mypaint/releases/download/v${version}/mypaint-${version}.tar.xz" -checksum=ed2349382f6a0c583d7defae06427e97ac7d14acb77b9e2c0fc7171ddd96d3c7 +_sversion=beta.0 +_libcommit=f6278c97aa5af443e30069099c6461b056cdfe63 +wrksrc="${pkgname}-${version}-${_sversion}" +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_build() { scons ${makejobs} enable_openmp=1 } @@ -23,4 +32,6 @@ do_install() { rm -rf ${DESTDIR}/usr/include rm -f ${DESTDIR}/usr/lib/*.a rm -rf ${DESTDIR}/usr/lib/pkgconfig + # Fix SVG icons + sed -i 's/xmlns:ns7/xmlns:xlink/g' ${DESTDIR}/usr/share/icons/hicolor/{24x24,scalable}/actions/mypaint-*.svg }