diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/medit/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/medit/PKGBUILD')
-rw-r--r-- | community/medit/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/medit/PKGBUILD b/community/medit/PKGBUILD new file mode 100644 index 000000000..797667386 --- /dev/null +++ b/community/medit/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 40816 2011-02-28 12:02:36Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: William Rea <sillywilly@gmail.com> + +pkgname=medit +pkgver=1.0.1 +pkgrel=1 +pkgdesc="A GTK text editor" +arch=('i686' 'x86_64') +url="http://mooedit.sourceforge.net" +options=('!emptydirs') +license=('GPL') +depends=('pygtk' 'libxml2' 'pcre' 'libsm' 'python2' 'gtk2' 'gcc-libs') +optdepends=('ctags') +makedepends=(pkgconfig perlxml intltool gcc-objc) +install=medit.install +source=(http://downloads.sourceforge.net/mooedit/medit-$pkgver.tar.bz2 + capsule.diff) +md5sums=('2f1a73d6e5a2d180d7634ce1f98c4821' + 'd3386ca02ba598c73c581bf983a15f23') + +build() { + cd $srcdir/medit-$pkgver + export PYTHON=/usr/bin/python2 + patch -Np1 -i $srcdir/capsule.diff + [ -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 +} |