diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 48 | ||||
-rw-r--r-- | ulipad.desktop | 8 | ||||
-rw-r--r-- | ulipad.png | bin | 0 -> 1651 bytes | |||
-rw-r--r-- | ulipad.sh | 25 |
5 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0afbbe7e39b9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = ulipad-git + pkgdesc = A wxPython powered, programmer oriented and flexible editor + pkgver = r10.c8627cb + pkgrel = 1 + url = https://github.com/limodou/ulipad + arch = any + license = GPL + depends = wxpython + optdepends = psyco: speed support + optdepends = python2-pyenchant: spell-checking support + source = ulipad-git::git://github.com/limodou/ulipad.git + source = ulipad.desktop + source = ulipad.png + source = ulipad.sh + md5sums = SKIP + md5sums = 8179bab501c1eea2a799f497292b4549 + md5sums = 088feea9980edd118c7297e6d45613af + md5sums = 23cdc38822e51dc6ffaa86dff94d967d + +pkgname = ulipad-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..87ffac32857d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: willemw <willemw12@gmail> +# +# From 'ulipad' package: +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> +# Contributor: TDY <tdy@gmx.com> +# Contributor: Nicolás de la Torre <ndelatorre@gmail.com> + +_pkgname=ulipad +pkgname=$_pkgname-git +pkgver=r10.c8627cb +pkgrel=1 +pkgdesc="A wxPython powered, programmer oriented and flexible editor" +arch=('any') +url="https://github.com/limodou/ulipad" +license=('GPL') +depends=('wxpython') +optdepends=('psyco: speed support' + 'python2-pyenchant: spell-checking support') +source=($pkgname::git://github.com/limodou/ulipad.git + $_pkgname.desktop + $_pkgname.png + $_pkgname.sh) +md5sums=('SKIP' + '8179bab501c1eea2a799f497292b4549' + '088feea9980edd118c7297e6d45613af' + '23cdc38822e51dc6ffaa86dff94d967d') + +pkgver() { + cd $pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd $pkgname + find . -name "*.py*" -exec sed -i "s|env python|env python2|" '{}' \; + find . -name "*.py*" -exec sed -i "s|/usr/bin/python|/usr/bin/python2|" '{}' \; +} + +package() { + install -Dm644 $_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop" + install -Dm644 $_pkgname.png "$pkgdir/usr/share/pixmaps/$_pkgname.png" + install -Dm755 $_pkgname.sh "$pkgdir/usr/bin/$_pkgname" + + cd $pkgname + install -dm755 "$pkgdir/usr/share/$_pkgname" + cp -r ./* "$pkgdir/usr/share/$_pkgname" +} + diff --git a/ulipad.desktop b/ulipad.desktop new file mode 100644 index 000000000000..4632d75c7952 --- /dev/null +++ b/ulipad.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=UliPad +Comment=A wxPython powered, programmer oriented and flexible editor +Exec=ulipad +Icon=ulipad.png +Terminal=false +Categories=Development; diff --git a/ulipad.png b/ulipad.png Binary files differnew file mode 100644 index 000000000000..89fcf2765fc0 --- /dev/null +++ b/ulipad.png diff --git a/ulipad.sh b/ulipad.sh new file mode 100644 index 000000000000..80dc8e34df41 --- /dev/null +++ b/ulipad.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +ULI_HOME=~/.ulipad +ULI_ROOT=/usr/share/ulipad +ULI_LINK=(UliPad.pyw acp contrib doc images mixins modules + packages resources scripts tools ulipad.ico wizard) +ULI_VERS=4.1 + +create_local() { + rm -rf "$ULI_HOME" + install -dm755 "$ULI_HOME" + + for link in ${ULI_LINK[@]}; do ln -sf $ULI_ROOT/$link "$ULI_HOME"; done + cp -r $ULI_ROOT/{UliPad.py,conf,lang,plugins} $ULI_HOME + + find "$ULI_HOME" -type d -exec chmod 755 '{}' \; + find "$ULI_HOME" -type f -exec chmod 644 '{}' \; + + touch "$ULI_HOME"/.$ULI_VERS +} + +[[ ! -e $ULI_HOME/.$ULI_VERS ]] && create_local +cd "$ULI_HOME" +python2 UliPad.py "$@" 2> "$ULI_HOME"/error.txt +exit $? |