summaryrefslogtreecommitdiff
path: root/community/mime-editor/PKGBUILD
blob: ca450686ec0e263d2c51cd5f63cbc201c4a1a182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
}