summaryrefslogtreecommitdiff
path: root/pcr/petri-foo
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/petri-foo')
-rw-r--r--pcr/petri-foo/PKGBUILD31
-rw-r--r--pcr/petri-foo/petri-foo-0.1.87_fix_recent_file_not_exist.patch24
-rw-r--r--pcr/petri-foo/petri-foo.install19
3 files changed, 74 insertions, 0 deletions
diff --git a/pcr/petri-foo/PKGBUILD b/pcr/petri-foo/PKGBUILD
new file mode 100644
index 000000000..72ca1e45a
--- /dev/null
+++ b/pcr/petri-foo/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Guest One <theguestone at gmail dot com>
+# patch taken from https://aur.archlinux.org/packages/petri-foo/
+pkgname=petri-foo
+pkgver=0.1.87
+pkgrel=1
+pkgdesc="A fork of specimen, a MIDI controllable audio sampler, for JACK."
+arch=('i686')
+url="http://petri-foo.sourceforge.net/"
+license=('GPL2')
+depends=('jack' 'libgnomecanvas')
+makedepends=('cmake')
+optdepends=('liblo: Non Session Manager support')
+install='petri-foo.install'
+source=(http://sourceforge.net/projects/${pkgname}/files/Source/${pkgname}-${pkgver}.tar.bz2
+ petri-foo-0.1.87_fix_recent_file_not_exist.patch)
+md5sums=('40f8a224368187672f9f306f8a4fa8c5'
+ '964db40cc53d77d42f6593f2201b9c40')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 < ../petri-foo-0.1.87_fix_recent_file_not_exist.patch
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DUpdateMime:BOOL=OFF .
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/petri-foo/petri-foo-0.1.87_fix_recent_file_not_exist.patch b/pcr/petri-foo/petri-foo-0.1.87_fix_recent_file_not_exist.patch
new file mode 100644
index 000000000..3e88487b0
--- /dev/null
+++ b/pcr/petri-foo/petri-foo-0.1.87_fix_recent_file_not_exist.patch
@@ -0,0 +1,24 @@
+diff -Naur a/gui/bank-ops.c b/gui/bank-ops.c
+--- a/gui/bank-ops.c 2012-08-06 05:33:34.000000000 +0200
++++ b/gui/bank-ops.c 2012-08-07 17:57:28.580145691 +0200
+@@ -393,6 +393,8 @@
+ g_signal_connect_swapped(G_OBJECT(msg), "response",
+ G_CALLBACK(gtk_widget_destroy), msg);
+ gtk_widget_show (msg);
++
++ gtk_recent_manager_remove_item(recent_manager, filename, NULL);
+ }
+ else
+ {
+diff -Naur a/libpetrifui/dish_file.c b/libpetrifui/dish_file.c
+--- a/libpetrifui/dish_file.c 2012-08-06 05:33:34.000000000 +0200
++++ b/libpetrifui/dish_file.c 2012-08-07 17:56:09.063909801 +0200
+@@ -1440,7 +1440,7 @@
+
+ if (stat(path, &st) != 0)
+ {
+- msg_log(MSG_ERROR, "file '%s' does not exist\n");
++ msg_log(MSG_ERROR, "file '%s' does not exist\n", path);
+ return -1;
+ }
+
diff --git a/pcr/petri-foo/petri-foo.install b/pcr/petri-foo/petri-foo.install
new file mode 100644
index 000000000..5dd24bbe5
--- /dev/null
+++ b/pcr/petri-foo/petri-foo.install
@@ -0,0 +1,19 @@
+updatedesktopdtb() {
+ [ -x /usr/bin/update-desktop-database ] \
+ && update-desktop-database -q
+ [ -x /usr/bin/update-mime-database ] \
+ && update-mime-database usr/share/mime > /dev/null 2>&1
+}
+
+post_install() {
+ updatedesktopdtb
+}
+
+post_upgrade() {
+ updatedesktopdtb
+}
+
+post_remove() {
+ updatedesktopdtb
+}
+