From d340a612ca6265731579f3c138d11dc382ced300 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Fri, 5 Jan 2018 09:26:59 +0100 Subject: [PATCH] New package: synfigstudio-1.2.1 Closes: #10482 [via git-merge-pr] --- srcpkgs/synfigstudio-devel | 1 + .../patches/musl-accessperms.patch | 26 ++++++++++++++++++ srcpkgs/synfigstudio/template | 27 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 120000 srcpkgs/synfigstudio-devel create mode 100644 srcpkgs/synfigstudio/patches/musl-accessperms.patch create mode 100644 srcpkgs/synfigstudio/template diff --git a/srcpkgs/synfigstudio-devel b/srcpkgs/synfigstudio-devel new file mode 120000 index 00000000000..95935f9c7fc --- /dev/null +++ b/srcpkgs/synfigstudio-devel @@ -0,0 +1 @@ +synfigstudio \ No newline at end of file diff --git a/srcpkgs/synfigstudio/patches/musl-accessperms.patch b/srcpkgs/synfigstudio/patches/musl-accessperms.patch new file mode 100644 index 00000000000..7dbbcdb2e12 --- /dev/null +++ b/srcpkgs/synfigstudio/patches/musl-accessperms.patch @@ -0,0 +1,26 @@ +--- src/gui/app.cpp.orig 2017-09-09 05:03:59.000000000 +0200 ++++ src/gui/app.cpp 2017-11-13 07:17:16.769223845 +0100 +@@ -153,6 +153,10 @@ + + #endif + ++#ifndef ACCESSPERMS ++# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */ ++#endif ++ + /* === U S I N G =========================================================== */ + + using namespace std; +--- src/gui/autorecover.cpp.orig 2017-09-08 11:51:26.000000000 +0200 ++++ src/gui/autorecover.cpp 2017-11-13 07:21:41.550697678 +0100 +@@ -75,6 +75,10 @@ + + #endif + ++#ifndef ACCESSPERMS ++# define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) /* 0777 */ ++#endif ++ + /* === U S I N G =========================================================== */ + + using namespace std; diff --git a/srcpkgs/synfigstudio/template b/srcpkgs/synfigstudio/template new file mode 100644 index 00000000000..6dd4f0b6ab5 --- /dev/null +++ b/srcpkgs/synfigstudio/template @@ -0,0 +1,27 @@ +# Template file for 'synfigstudio' +pkgname=synfigstudio +version=1.2.1 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config intltool gettext" +makedepends="ETL synfig-devel gtkmm-devel libltdl-devel boost-devel" +short_desc="Vector based 2D animation studio" +maintainer="newbluemoon " +license="GPL-3" +homepage="http://www.synfig.org/" +distfiles="${SOURCEFORGE_SITE}/synfig/releases/${version}/source/synfigstudio-${version}.tar.gz" +checksum=1a97875e0039895604085649bcd30cf0d6165f4c865299ca13d45d2dfbfab05d + +if [ -n "$CROSS_BUILD" ]; then + # uses synfig to create some icons + hostmakedepends+=" synfig" +fi + +synfigstudio-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.so + } +}