summaryrefslogtreecommitdiff
path: root/community/synfigstudio
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/synfigstudio
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/synfigstudio')
-rw-r--r--community/synfigstudio/PKGBUILD32
-rw-r--r--community/synfigstudio/images-makefile.patch49
-rw-r--r--community/synfigstudio/synfigstudio.install12
3 files changed, 93 insertions, 0 deletions
diff --git a/community/synfigstudio/PKGBUILD b/community/synfigstudio/PKGBUILD
new file mode 100644
index 000000000..73aaafa65
--- /dev/null
+++ b/community/synfigstudio/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 36099 2010-12-27 10:40:19Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Franco Iacomella <yaco@gnu.org>
+
+pkgname=synfigstudio
+_lpkgname=synfig
+pkgver=0.62.02
+pkgrel=1
+pkgdesc="Professional vector animation program (GUI)"
+arch=(i686 x86_64)
+url="http://synfig.org"
+license=('GPL2')
+depends=('gtkmm' 'synfig')
+install=synfigstudio.install
+source=(http://downloads.sourceforge.net/sourceforge/${_lpkgname}/$pkgname-$pkgver.tar.gz
+ images-makefile.patch)
+md5sums=('4b06f813e497072f01779f554e34c315'
+ 'f5555c14b5e530f349dd222ff4499fee')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr
+# [ $NOEXTRACT -eq 1 ] || patch -Np0 -i ../images-makefile.patch
+ sed -i 's#Gtk::IconSize::IconSize#Gtk::IconSize#' src/gui/dialogs/dialog_color.cpp
+
+ make
+ make DESTDIR=$pkgdir install
+
+ rm -f $pkgdir/usr/share/pixmaps/$pkgname/*.mng
+ install -m644 images/*.png -t $pkgdir/usr/share/pixmaps/$pkgname/
+}
diff --git a/community/synfigstudio/images-makefile.patch b/community/synfigstudio/images-makefile.patch
new file mode 100644
index 000000000..cb209b40e
--- /dev/null
+++ b/community/synfigstudio/images-makefile.patch
@@ -0,0 +1,49 @@
+--- images-old/Makefile 2008-10-22 23:16:32.000000000 -0700
++++ images/Makefile 2008-10-22 23:15:16.000000000 -0700
+@@ -223,7 +223,7 @@
+ top_builddir = ..
+ top_srcdir = ..
+ SYNFIG = synfig
+-EXT = png
++EXT = mng
+ EXTRA_DIST = installer_logo.sif installer_logo_osx.sif \
+ splash_screen.sifz splash_screen-0.61.08.sif \
+ splash_screen-0.61.07.sif about_icon.sif angle_icon.sif \
+@@ -650,31 +650,37 @@
+ $(SYNFIG) -q $< -o $@ --time 0
+ echo " File \"images\\$@\"" >>./images.nsh
+ echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
++ mogrify -format png $@
+
+ .sifz.$(EXT):
+ $(SYNFIG) -q $< -o $@ --time 0
+ echo " File \"images\\$@\"" >>./images.nsh
+ echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
++ mogrify -format png $@
+
+ keyframe_lock_all.$(EXT): $(srcdir)/keyframe_lock_icon.sif
+ $(SYNFIG) -q $< -o $@ --time 0
+ echo " File \"images\\$@\"" >>./images.nsh
+ echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
++ mogrify -format png $@
+
+ keyframe_lock_past.$(EXT): $(srcdir)/keyframe_lock_icon.sif
+ $(SYNFIG) -q $< -o $@ --time 0 -c PastOnly
+ echo " File \"images\\$@\"" >>./images.nsh
+ echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
++ mogrify -format png $@
+
+ keyframe_lock_future.$(EXT): $(srcdir)/keyframe_lock_icon.sif
+ $(SYNFIG) -q $< -o $@ --time 0 -c FutureOnly
+ echo " File \"images\\$@\"" >>./images.nsh
+ echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
++ mogrify -format png $@
+
+ keyframe_lock_none.$(EXT): $(srcdir)/keyframe_lock_icon.sif
+ $(SYNFIG) -q $< -o $@ --time 0 -c Disabled
+ echo " File \"images\\$@\"" >>./images.nsh
+ echo " Delete \"\$$INSTDIR\\share\\pixmaps\\$@\"" >>./unimages.nsh
++ mogrify -format png $@
+
+ #.sif.png:
+ # $(SYNFIG) -q $< -o $@ --time 0
diff --git a/community/synfigstudio/synfigstudio.install b/community/synfigstudio/synfigstudio.install
new file mode 100644
index 000000000..b4ee8556f
--- /dev/null
+++ b/community/synfigstudio/synfigstudio.install
@@ -0,0 +1,12 @@
+post_install() {
+ which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true
+}
+