summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc2015-10-30 21:27:31 +0100
committerMarc2015-10-30 21:27:31 +0100
commiteb5c98e1a54085e91dcd3d0c1a982353ec35f721 (patch)
treea8eb808752923599d6e53ffcc1c68dc2cc78ea97
downloadaur-eb5c98e1a54085e91dcd3d0c1a982353ec35f721.tar.gz
init
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD52
-rw-r--r--pybitmessage.sh3
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..232ba69bc62
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = pybitmessage
+ pkgdesc = Decentralized and trustless P2P communications protocol for sending encrypted messages to another person or to many subscribers
+ pkgver = 0.4.4
+ pkgrel = 2
+ url = https://github.com/Bitmessage/PyBitmessage
+ arch = any
+ license = MIT
+ depends = openssl
+ depends = python2
+ depends = python2-pyqt4
+ depends = qt4
+ depends = sqlite
+ optdepends = mpg123: MP3 sounds support
+ optdepends = alsa-utils: WAV sounds support
+ provides = pybitmessage
+ conflicts = pybitmessage-git
+ source = PyBitmessage-0.4.4.tar.gz::https://github.com/Bitmessage/PyBitmessage/archive/v0.4.4.tar.gz
+ source = pybitmessage.sh
+ sha256sums = 2fe2b1ad4d7426c8777fb429129b7a07c717ea5f00cc3041a03ac19fd3259b3a
+ sha256sums = dad3783438c7328468eb0117da04b26c4f6d5f897ed3b44a333b22355c938a4b
+
+pkgname = pybitmessage
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..713bbaecdaf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Evgeny Kurnevsky <kurnevsky@gmail.com>
+# Maintainer: Bob Mottram (4096 bits) <bob@robotics.uk.to>
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=pybitmessage
+_realname=PyBitmessage
+pkgver=0.4.4
+pkgrel=2
+pkgdesc="Decentralized and trustless P2P communications protocol for sending encrypted messages to another person or to many subscribers"
+arch=('any')
+depends=('openssl' 'python2' 'python2-pyqt4' 'qt4' 'sqlite')
+optdepends=('mpg123: MP3 sounds support'
+ 'alsa-utils: WAV sounds support')
+url="https://github.com/Bitmessage/PyBitmessage"
+license=('MIT')
+source=($pkgname-$pkgver.tar.gz::https://github.com/Bitmessage/$_realname/archive/v$pkgver.tar.gz
+ pybitmessage.sh)
+md5sums=('e2e344e2241f14b70bca80ffa5b251a2'
+ '0dfcad65e76e7403ae17ceeb6764d2b8')
+sha256sums=('2fe2b1ad4d7426c8777fb429129b7a07c717ea5f00cc3041a03ac19fd3259b3a'
+ 'dad3783438c7328468eb0117da04b26c4f6d5f897ed3b44a333b22355c938a4b')
+provides=('pybitmessage')
+conflicts=('pybitmessage-git')
+
+prepare() {
+ cd "$srcdir/$_realname-$pkgver"
+
+ 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 "$srcdir/$_realname-$pkgver"
+
+ msg 'Installing shared files...'
+ mkdir -p "$pkgdir"/usr/share/$pkgname
+ cp -R src/* "$pkgdir"/usr/share/$pkgname
+
+ msg 'Installing desktop icons...'
+ install -D -m644 desktop/pybitmessage.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -D -m644 src/images/can-icon-24px.png "$pkgdir/usr/share/icons/hicolor/24x24/apps/$pkgname.png"
+ install -D -m644 desktop/can-icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
+ install -D -m644 desktop/can-icon.svg "$pkgdir/usr/share/pixmaps/$pkgname.svg"
+
+ msg 'Installing executable...'
+ install -D -m755 $srcdir/pybitmessage.sh "$pkgdir/usr/bin/$pkgname"
+
+ msg 'Installing man page...'
+ mkdir -p "$pkgdir/usr/share/man/man1"
+ install -m644 man/pybitmessage.1.gz "$pkgdir/usr/share/man/man1"
+}
diff --git a/pybitmessage.sh b/pybitmessage.sh
new file mode 100644
index 00000000000..71a2f774c09
--- /dev/null
+++ b/pybitmessage.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/pybitmessage
+exec python2 bitmessagemain.py