summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b189192d04aa60f8bc298149ede3bd29b5b5022 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.dot.org>
# Contributor: Sergey Pupykin

pkgname=mime-editor
pkgver=0.6
pkgrel=6
pkgdesc='Shared-mime info database editor, useful for changing MIME-type info in rox applications'
arch=('any')
url='http://rox.sourceforge.net/desktop/MIME-Editor.html'
license=('GPL2')
depends=('pygtk' 'rox-lib' 'shared-mime-info')
source=("http://downloads.sourceforge.net/rox/${pkgname}-${pkgver}.tar.bz2"
        'mime-editor')
md5sums=('bfa250d074b6a712c1fce936a5fcaae4'
         '9438b0a8d591abd03099ac5961540d4a')

prepare() {
  cd ${pkgname}-${pkgver}
  # python2 fix
  sed -i "s|\(env python\).*|\12|" $(grep -rl "env python" .)
}

package() {
  cd ${pkgname}-${pkgver}
  install -d "${pkgdir}"/usr/share
  cp -rp MIME-Editor "${pkgdir}"/usr/share
 # create a shellscript which is known in the PATH
  install -Dm755 "${srcdir}"/$pkgname "${pkgdir}"/usr/bin/$pkgname
}