summaryrefslogtreecommitdiff
path: root/community/mime-editor
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/mime-editor
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mime-editor')
-rw-r--r--community/mime-editor/PKGBUILD33
-rw-r--r--community/mime-editor/mime-editor2
2 files changed, 35 insertions, 0 deletions
diff --git a/community/mime-editor/PKGBUILD b/community/mime-editor/PKGBUILD
new file mode 100644
index 000000000..ca450686e
--- /dev/null
+++ b/community/mime-editor/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 27254 2010-09-18 22:01:47Z schuay $
+# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.dot.org>
+
+pkgname=mime-editor
+pkgver=0.6
+pkgrel=2
+pkgdesc='Shared-mime info database editor, useful for changing MIME-type info in rox applications'
+arch=('i686' 'x86_64')
+url='http://rox.sourceforge.net/mime_editor.html'
+license=('GPL2')
+depends=('pygtk' 'rox-lib' 'shared-mime-info')
+groups=('rox-desktop')
+source=("http://downloads.sourceforge.net/project/rox/MIME-Editor/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+ 'mime-editor')
+md5sums=('bfa250d074b6a712c1fce936a5fcaae4'
+ '9438b0a8d591abd03099ac5961540d4a')
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ # python2 fix
+ for file in $(find . -name '*.py' -print) MIME-Editor/AppRun; do
+ sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+ sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+
+ mkdir -p ${pkgdir}/usr/share
+
+ cp -rp MIME-Editor ${pkgdir}/usr/share
+
+ # create a shellscript which is known in the PATH
+ install -D ${srcdir}/$pkgname ${pkgdir}/usr/bin/$pkgname
+}
diff --git a/community/mime-editor/mime-editor b/community/mime-editor/mime-editor
new file mode 100644
index 000000000..17e1acfca
--- /dev/null
+++ b/community/mime-editor/mime-editor
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/share/MIME-Editor/AppRun "$@"