summaryrefslogtreecommitdiff
path: root/community/medit/PKGBUILD
blob: 728f962c32820c9639ea6855a38a6df95c9e6ebb (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
34
35
36
37
# $Id: PKGBUILD 60108 2011-12-05 11:28:47Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=medit
pkgver=1.0.5
pkgrel=2
pkgdesc="A GTK text editor"
arch=('i686' 'x86_64' 'mips64el')
url="http://mooedit.sourceforge.net"
options=('!emptydirs')
license=('GPL')
depends=('pygtk' 'libxml2' 'pcre' 'libsm' 'python2' 'gtk2' 'gcc-libs')
optdepends=('ctags' 'vte: terminal emulator')
makedepends=(pkgconfig perlxml intltool gcc-objc)
install=medit.install
source=(http://downloads.sourceforge.net/mooedit/medit-$pkgver.tar.bz2
	medit-terminal.patch)
md5sums=('ca790a6153eab7e2a47ac965940c0c7d'
         'fc4c193506901379cf2978aba950179b')

build() {
  cd $srcdir/medit-$pkgver
  export PYTHON=/usr/bin/python2
  patch -p0 <$srcdir/medit-terminal.patch
  [ -f Makefile ] || ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/medit-$pkgver
  make DESTDIR=${pkgdir} install
  cd ${pkgdir}/usr/share/medit-1/language-specs
  sed -i "s|*.sh|*.sh;PKGBUILD|" sh.lang
  rm -rf $pkgdir/usr/share/mime
  rm -rf $pkgdir/usr/share/icons/hicolor/icon-theme.cache
}