2016-12-05 13:45:25 -05:00
|
|
|
# Maintainer: Tommaso Sardelli <lacapannadelloziotom AT gmail DOT com>
|
|
|
|
# Contributor: Philipp Joram <phijor AT t-online DOT de>
|
|
|
|
|
|
|
|
pkgname='python2-axolotl-git'
|
|
|
|
_pkgname='python-axolotl'
|
2017-04-02 00:37:03 -04:00
|
|
|
pkgver=0.1.39.r0.g37c5c55
|
2016-12-05 13:45:25 -05:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Python port of libaxolotl"
|
|
|
|
url="https://github.com/tgalal/python-axolotl"
|
|
|
|
arch=('any')
|
|
|
|
license=('GPL')
|
2017-04-16 22:04:31 -04:00
|
|
|
depends=('python2' 'python2-protobuf' 'python2-crypto' 'python2-axolotl-curve25519-git')
|
2017-03-31 23:18:45 -04:00
|
|
|
makedepends=('python2-setuptools' 'git')
|
2016-12-05 13:45:25 -05:00
|
|
|
conflicts=('python2-axolotl')
|
|
|
|
provides=('python2-axolotl')
|
|
|
|
source=('git://github.com/tgalal/python-axolotl')
|
|
|
|
sha512sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
( set -o pipefail
|
|
|
|
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
python2 setup.py install --root="$pkgdir/"
|
|
|
|
}
|