diff options
author | Alexander F. Rødseth | 2019-03-27 10:18:16 +0100 |
---|---|---|
committer | Alexander F. Rødseth | 2019-03-27 10:18:16 +0100 |
commit | 769c28d3090594cd9f9efe561481fe60b8af06d7 (patch) | |
tree | a974b011630b12d53195ce88d938f28cefb2afc4 | |
download | aur-769c28d3090594cd9f9efe561481fe60b8af06d7.tar.gz |
Move from [community] to AUR in connection with the spring cleaning
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | medit.appdata.xml | 28 |
3 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6ad545b85d99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Wed Mar 27 09:16:00 UTC 2019 +pkgbase = medit + pkgdesc = GTK+ text editor + pkgver = 1.2.0 + pkgrel = 6 + url = http://mooedit.sourceforge.net/ + arch = x86_64 + license = LGPL2.1 + makedepends = intltool + makedepends = python + depends = libsm + depends = pygtk + optdepends = ctags: Show functions in the open document + source = https://downloads.sourceforge.net/mooedit/medit-1.2.0.tar.bz2 + source = medit.appdata.xml + sha256sums = f0f7b3d9e3337907a5b27aa2ff3a084250d7517b38488c50872a621b4e1f3a4d + sha256sums = dd83c9fcb5023563b7826ad6b796946a86947f886bdff773a8feb1a35b462618 + +pkgname = medit + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dd93e817bdf8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: +# Contributor: Balló György <ballogyor+arch at gmail dot com> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: William Rea <sillywilly@gmail.com> + +pkgname=medit +pkgver=1.2.0 +pkgrel=6 +pkgdesc='GTK+ text editor' +arch=('x86_64') +url='http://mooedit.sourceforge.net/' +license=('LGPL2.1') +depends=('libsm' 'pygtk') +makedepends=('intltool' 'python') +optdepends=('ctags: Show functions in the open document') +source=(https://downloads.sourceforge.net/mooedit/$pkgname-$pkgver.tar.bz2 + medit.appdata.xml) +sha256sums=('f0f7b3d9e3337907a5b27aa2ff3a084250d7517b38488c50872a621b4e1f3a4d' + 'dd83c9fcb5023563b7826ad6b796946a86947f886bdff773a8feb1a35b462618') + +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 $pkgname-$pkgver + ./configure --prefix=/usr --disable-install-hooks PYTHON=python2 + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml" +} diff --git a/medit.appdata.xml b/medit.appdata.xml new file mode 100644 index 000000000000..4ddaaf3210f1 --- /dev/null +++ b/medit.appdata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="desktop-application"> + <id>net.sourceforge.medit</id> + <launchable type="desktop-id">medit.desktop</launchable> + <name>medit</name> + <summary>Text editor</summary> + <metadata_license>CC0-1.0</metadata_license> + <project_license>LGPL-2.1</project_license> + <description> + <p>medit is a programming and around-programming text editor. Started originally as a simple built-in editor component in GGAP, it grew up to a real text editor.</p> + </description> + <screenshots> + <screenshot type="default"> + <image>http://mooedit.sourceforge.net/img/medit.png</image> + </screenshot> + <screenshot> + <image>http://mooedit.sourceforge.net/img/medit-2.png</image> + </screenshot> + <screenshot> + <image>http://mooedit.sourceforge.net/img/build.png</image> + </screenshot> + <screenshot> + <image>http://mooedit.sourceforge.net/img/output.png</image> + </screenshot> + </screenshots> + <url type="bugtracker">https://sourceforge.net/p/mooedit/bugs/</url> + <url type="homepage">http://mooedit.sourceforge.net/</url> +</component> |