From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/mime-editor/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ community/mime-editor/mime-editor | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 community/mime-editor/PKGBUILD create mode 100644 community/mime-editor/mime-editor (limited to 'community/mime-editor') 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 + +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 "$@" -- cgit v1.2.3-54-g00ecf