PKGBUILDs/community/medit/PKGBUILD
2009-10-09 21:15:33 -05:00

30 lines
960 B
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=medit
pkgver=0.9.4
pkgrel=8
pkgdesc="A GTK text editor"
arch=('i686' 'x86_64')
url="http://mooedit.sourceforge.net"
options=('!emptydirs')
license=('GPL')
depends=('pygtk' 'libxml2' 'pcre' 'libsm' 'python' 'gtk2' 'gcc-objc')
makedepends=(pkgconfig perlxml intltool)
install=medit.install
source=(http://downloads.sourceforge.net/mooedit/medit-$pkgver.tar.bz2)
md5sums=('502086d22d608232d48ef70d56ef5f84')
build() {
cd $startdir/src/medit-$pkgver
sed -i 's#getline(#xgetline(#' moo/moolua/ldebug.c moo/moolua/ldebug.h moo/moolua/lvm.c || return 1
./configure --prefix=/usr --with-pygtk --with-python --with-xml
make || return 1
make DESTDIR=$startdir/pkg install || return 1
rm -rf $startdir/pkg/usr/share/mime && \
rm -rf $startdir/pkg/usr/share/icons/hicolor/icon-theme.cache
}