diff options
author | anthraxx | 2015-06-18 18:01:54 +0200 |
---|---|---|
committer | anthraxx | 2015-06-18 18:01:54 +0200 |
commit | ea9e5eca0fbb3eebbc0fe834cdf420c1d0b106a2 (patch) | |
tree | 3a4e4184d6ddbbb894203d26758040986cf64fa6 | |
download | aur-ea9e5eca0fbb3eebbc0fe834cdf420c1d0b106a2.tar.gz |
addpkg: pyclewn 2.1-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | pyclewn.install | 16 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b5618fa04e41 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = pyclewn + pkgdesc = A Vim front-end to the gdb and pdb debuggers + pkgver = 2.1 + pkgrel = 1 + url = http://pyclewn.sourceforge.net + install = pyclewn.install + arch = any + license = GPL2 + depends = python + depends = vim>=7.4 + depends = gdb + depends = python-pdb-clone + source = pyclewn-2.1.tar.gz::https://pypi.python.org/packages/source/p/pyclewn/pyclewn-2.1.tar.gz + sha512sums = 346b98a9e37957a5bf97b8901247f56fa8e38bddac38727867773cf4e78e555d6a85848c4c400d1faf1159ba61122cfd4931c95a67e3b2abdfaae7996beb4f1b + +pkgname = pyclewn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..63116a697dd0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net> +# Contributor: LUO, Jian <jian (dot) luo (dot) cn (at) gmail (dot) com > +# Contributor: Ivan Sichmann Freitas <ivansichfreitas (at) gmail (dot) com> + +pkgname=pyclewn +pkgver=2.1 +pkgrel=1 +pkgdesc="A Vim front-end to the gdb and pdb debuggers" +license=('GPL2') +arch=('any') +url="http://pyclewn.sourceforge.net" +depends=('python' 'vim>=7.4' 'gdb' 'python-pdb-clone') +install=pyclewn.install +source=(${pkgname}-${pkgver}.tar.gz::https://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz) +sha512sums=('346b98a9e37957a5bf97b8901247f56fa8e38bddac38727867773cf4e78e555d6a85848c4c400d1faf1159ba61122cfd4931c95a67e3b2abdfaae7996beb4f1b') + +package() { + cd ${pkgname}-${pkgver} + + python setup.py install -O1 --root="${pkgdir}" --prefix=/usr + install -Dm 644 README "${pkgdir}/usr/share/doc/${pkgname}/README" + + # install vimball + install -d "${pkgdir}/usr/share/vim/vimfiles" + vim -c "let g:vimball_home = \"${pkgdir}/usr/share/vim/vimfiles\"" \ + -S ./lib/clewn/runtime/${pkgname}-${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: ts=2 sw=2 et: diff --git a/pyclewn.install b/pyclewn.install new file mode 100644 index 000000000000..3f827f680cdd --- /dev/null +++ b/pyclewn.install @@ -0,0 +1,16 @@ +post_install() { + 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 +} + +post_remove() { + post_install +} + +# vim: ts=2 sw=2 et: |