diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-01 03:24:22 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-01 03:24:22 +0000 |
commit | ce0424b2e68538f0e0c1b882300541ceed0d27e3 (patch) | |
tree | 55d80adcdcd70e60e180be3acb102a1be02f00b3 /pcr | |
parent | 5a81550adad5ccde4ad6924cfee2b2ef96d02c98 (diff) |
Wed Jan 1 03:20:52 UTC 2014
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/pybitmessage-git/PKGBUILD | 58 | ||||
-rw-r--r-- | pcr/pybitmessage-git/pybitmessage.sh | 3 |
2 files changed, 61 insertions, 0 deletions
diff --git a/pcr/pybitmessage-git/PKGBUILD b/pcr/pybitmessage-git/PKGBUILD new file mode 100644 index 000000000..e6cad32b3 --- /dev/null +++ b/pcr/pybitmessage-git/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Andreas Wagner <AndreasBWagner@pointfree.net> +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> +# Contributor: Asta <gatien.bovyn@gmail.com> +# Contributor: ptrv <mail@petervasil.net> + +pkgname=pybitmessage-git +_gitname='PyBitmessage' +_realname='pybitmessage' +pkgver=7ad8ce7 +pkgrel=2 +pkgdesc="Bitcoin inspired P2P encrypted messenger" +arch=('any') +depends=('hicolor-icon-theme' 'python2' 'python2-pyqt' 'qt4') +makedepends=('git') +optdepends=('python2-gevent') +url="https://github.com/Bitmessage/PyBitmessage" +license=('MIT') +source=(git+https://github.com/Bitmessage/PyBitmessage + pybitmessage.sh) +sha256sums=('SKIP' + 'c20eeeffd4931d8bcd50de5e6e1a974323ebbd3f5ad1d34483c6adeb3b5f3ae1') +provides=('pybitmessage') +conflicts=('pybitmessage') + +pkgver() { + cd $_gitname + git describe --always | sed 's|-|.|g' +} + +prepare() { + cd $_gitname + + msg 'Fixing Python version...' + find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/python#/usr/bin/python2#g' + find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/env python#/usr/bin/env python2#g' +} + +package() { + cd $_gitname + + msg 'Installing shared files...' + mkdir -p "$pkgdir"/usr/share/${_realname} + cp -R src/* "$pkgdir"/usr/share/${_realname} + + msg 'Installing desktop icons...' + install -D -m644 desktop/${_realname}.desktop "${pkgdir}/usr/share/applications/${_realname}.desktop" + install -D -m644 src/images/can-icon-24px.png "${pkgdir}/usr/share/icons/hicolor/24x24/apps/${_realname}.png" + install -D -m644 desktop/can-icon.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_realname}.svg" + install -D -m644 desktop/can-icon.svg "${pkgdir}/usr/share/pixmaps/${_realname}.svg" + + msg 'Installing executable...' + install -D -m755 ${srcdir}/pybitmessage.sh "${pkgdir}/usr/bin/pybitmessage" + + msg 'Cleaning up pkgdir...' + find "$pkgdir" -type d -name .git -exec rm -r '{}' + + find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' + +} + diff --git a/pcr/pybitmessage-git/pybitmessage.sh b/pcr/pybitmessage-git/pybitmessage.sh new file mode 100644 index 000000000..117dce3bc --- /dev/null +++ b/pcr/pybitmessage-git/pybitmessage.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +python2 /usr/share/pybitmessage/bitmessagemain.py |