diff options
author | Simon Désaulniers | 2015-06-25 16:53:32 -0400 |
---|---|---|
committer | Simon Désaulniers | 2015-06-25 16:53:32 -0400 |
commit | 7937f3374c72ce970c21f2d049db50330cedcfc6 (patch) | |
tree | c800df04ba91eae19895f041b43f3c19c5674da5 | |
download | aur-7937f3374c72ce970c21f2d049db50330cedcfc6.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | pyclewn2.install | 21 |
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a467df73c81a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = pyclewn2 + pkgdesc = A python2 version of gdb support for vim + pkgver = 2.1 + pkgrel = 1 + url = http://pyclewn.sourceforge.net/ + install = pyclewn2.install + arch = i686 + arch = x86_64 + license = GPL2 + depends = python2 + depends = python2-trollius + depends = python2-pdb-clone + depends = gvim>=7.4 + depends = gdb + source = https://pypi.python.org/packages/source/p/pyclewn/pyclewn-2.1.tar.gz + sha256sums = 4e6dccb6afa07e34202cc8cba4fc63a53d432b2dbc3f1a08c1945bbdd2a2a855 + +pkgname = pyclewn2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b81ece75c895 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer : Simon Désaulniers <rostydela@gmail.com> + +pkgname=pyclewn2 +pkgver=2.1 +pkgrel=1 +pkgdesc="A python2 version of gdb support for vim" +license=('GPL2') +arch=(i686 x86_64) +url="http://pyclewn.sourceforge.net/" +depends=('python2' 'python2-trollius' 'python2-pdb-clone' 'gvim>=7.4' 'gdb') +install=${pkgname}.install +source=("https://pypi.python.org/packages/source/p/${pkgname%2}/${pkgname%2}-${pkgver}.tar.gz") +sha256sums=('4e6dccb6afa07e34202cc8cba4fc63a53d432b2dbc3f1a08c1945bbdd2a2a855') + +_vimversion=$(vim --version | head -n 1 | gawk '{print $5}') + +prepare () { + #default python interpreter has to be python2.7 + sed -i -e 's/let s:python = "python"/let s:python = "python2.7"/' \ + -e 's/* pyclewn_python: "python"/* pyclewn_python: "python2.7"/' \ + $srcdir/${pkgname%2}-${pkgver}/lib/clewn/runtime/${pkgname%2}-${pkgver}.vmb +} + +package() { + cd $srcdir/${pkgname%2}-$pkgver + + python2.7 setup.py install --root=$pkgdir + install -Dm 644 README "${pkgdir}/usr/share/doc/${pkgname%2}/README" + + #installing the vimball + install -d "${pkgdir}/usr/share/vim/vimfiles" + vim -c "let g:vimball_home = \"${pkgdir}/usr/share/vim/vimfiles\"" \ + -S ./lib/clewn/runtime/${pkgname%2}-${pkgver}.vmb -c "q" < /dev/tty > /dev/tty + # fix vimball garbage + rm "${pkgdir}/usr/share/vim/vimfiles/doc/tags" + sed -ri "s|${pkgdir}||g" "${pkgdir}/usr/share/vim/vimfiles/.VimballRecord" +} +# vim:tw=80: sw=2: ts=2: diff --git a/pyclewn2.install b/pyclewn2.install new file mode 100644 index 000000000000..868e9d30ea9e --- /dev/null +++ b/pyclewn2.install @@ -0,0 +1,21 @@ +post_install() { + update_vim_tags +} + +update_vim_tags() { + echo -n "Updating vim help tags..." + /usr/bin/vim --noplugins -u NONE -U NONE \ + --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" \ + >/dev/null 2>&1 + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + update_vim_tags +} + +# vim:tw=80: ft=sh: sw=2: ts=2: |