[arch-commits] Commit in medit/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Sun Jan 14 19:58:05 UTC 2018


    Date: Sunday, January 14, 2018 @ 19:58:04
  Author: bgyorgy
Revision: 282268

upgpkg: medit 1.2.0-4

Adopt the package, various fixes

Modified:
  medit/trunk/PKGBUILD

----------+
 PKGBUILD |   44 +++++++++++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-14 19:35:23 UTC (rev 282267)
+++ PKGBUILD	2018-01-14 19:58:04 UTC (rev 282268)
@@ -1,33 +1,39 @@
 # $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Contributor: William Rea <sillywilly at gmail.com>
 
 pkgname=medit
 pkgver=1.2.0
-pkgrel=3
-pkgdesc="A GTK text editor"
+pkgrel=4
+pkgdesc='GTK+ text editor'
 arch=('x86_64')
-url="http://mooedit.sourceforge.net"
-options=('!emptydirs')
-license=('GPL')
-depends=('pygtk' 'libxml2' 'pcre' 'libsm' 'python2' 'gtk2' 'gcc-libs' 'gamin')
-optdepends=('ctags' 'vte: terminal emulator')
-makedepends=(pkg-config perl-xml-parser intltool gcc-objc)
-source=(http://downloads.sourceforge.net/mooedit/medit-$pkgver.tar.bz2)
-md5sums=('8388a8e275d0e1fa6cd19f7bb081279a')
+url='http://mooedit.sourceforge.net/'
+license=('LGPL2.1')
+depends=('libsm' 'pygtk')
+makedepends=('intltool' 'python')
+optdepends=('ctags: Show functions in the open document'
+            'vte: Terminal plugin')
+source=(https://downloads.sourceforge.net/mooedit/$pkgname-$pkgver.tar.bz2)
+sha256sums=('f0f7b3d9e3337907a5b27aa2ff3a084250d7517b38488c50872a621b4e1f3a4d')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Python2 fix
+  sed -i 's@^#!.*python$@#!/usr/bin/python2@' moo/moopython/plugins/lib/pyconsole.py
+
+  # Recognise PKGBUILD as shell script
+  sed -i 's/*.sh/*.sh;PKGBUILD/' moo/mooedit/langs/sh.lang
+}
+
 build() {
-  cd "$srcdir"/medit-$pkgver
-  export PYTHON=/usr/bin/python2
-  [ -f Makefile ] || ./configure --prefix=/usr --with-fam
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --disable-install-hooks PYTHON=python2
   make
 }
 
 package() {
-  cd "$srcdir"/medit-$pkgver
+  cd $pkgname-$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
 }



More information about the arch-commits mailing list