Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add leo PKGBUILD from AUR.

  • Loading branch information...
commit 57ee8185daecbf25c05e9847114ecc274c45ab66 1 parent 7a2373d
@dram authored
Showing with 46 additions and 0 deletions.
  1. +26 −0 leo/PKGBUILD
  2. +20 −0 leo/leo.install
View
26 leo/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: David Scholl <djscholl at gmail dot com>
+pkgname=leo
+pkgver=4.10
+pkgrel=2
+pkgdesc="Literate programmer's editor, outliner, and project manager"
+arch=('any')
+url="http://webpages.charter.net/edreamleo/front.html"
+license=('custom')
+depends=('python2-pyqt')
+makedepends=('unzip')
+backup=('opt/leo/leo/config/leoSettings.leo')
+install="leo.install"
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/Leo-$pkgver-final.zip)
+md5sums=('5cf70fff15da57957d84b25842159467')
+
+build() {
+ install -d $pkgdir/opt/$pkgname
+ cd $srcdir/Leo-$pkgver-final || return 1
+ sed 's/python/python2/' -i launchLeo.py || return 1
+ chmod a+x launchLeo.py || return 1
+ cp -R * $pkgdir/opt/$pkgname || return 1
+ install -D LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENSE.TXT
+ install -d $pkgdir/usr/bin
+ cd $pkgdir/usr/bin || return 1
+ ln -s ../../opt/leo/launchLeo.py leo || return 1
+}
View
20 leo/leo.install
@@ -0,0 +1,20 @@
+# arg 1: the new package version
+post_install() {
+ echo ">>> leo can be configured to use the python2-pyenchant package for spellchecking."
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+/bin/true
+}
+
+op=$1
+shift
+
+$op "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.