Skip to content

Commit

Permalink
Add leo PKGBUILD from AUR.
Browse files Browse the repository at this point in the history
  • Loading branch information
dram committed Sep 16, 2012
1 parent 7a2373d commit 57ee818
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 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
}
20 changes: 20 additions & 0 deletions 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 "$@"

0 comments on commit 57ee818

Please sign in to comment.