summaryrefslogtreecommitdiff
path: root/community/medit
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/medit
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/medit')
-rw-r--r--community/medit/PKGBUILD34
-rw-r--r--community/medit/medit.install11
2 files changed, 45 insertions, 0 deletions
diff --git a/community/medit/PKGBUILD b/community/medit/PKGBUILD
new file mode 100644
index 000000000..9752a3ec1
--- /dev/null
+++ b/community/medit/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 75884 2012-09-04 15:31:23Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=medit
+pkgver=1.1.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' 'vte: terminal emulator')
+makedepends=(pkgconfig perlxml intltool gcc-objc)
+install=medit.install
+source=(http://downloads.sourceforge.net/mooedit/medit-$pkgver.tar.bz2)
+md5sums=('9ea0d396a3bf3ee6ce220365bffb7358')
+
+build() {
+ cd $srcdir/medit-$pkgver
+ export PYTHON=/usr/bin/python2
+ [ -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
+}
diff --git a/community/medit/medit.install b/community/medit/medit.install
new file mode 100644
index 000000000..b95cc069d
--- /dev/null
+++ b/community/medit/medit.install
@@ -0,0 +1,11 @@
+post_install() {
+ which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true
+}