[arch-commits] Commit in python-bitcoinlib/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Sat Feb 15 21:36:09 UTC 2020


    Date: Saturday, February 15, 2020 @ 21:36:09
  Author: ffy00
Revision: 571872

upgpkg: python-bitcoinlib 0.10.2-1

Added:
  python-bitcoinlib/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-02-15 21:36:09 UTC (rev 571872)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-bitcoinlib
+pkgver=0.10.2
+_tag=$pkgname-v$pkgver
+pkgrel=1
+pkgdesc='Python3 library providing an easy interface to the Bitcoin data structures and protocol'
+arch=('any')
+url='https://github.com/petertodd/python-bitcoinlib'
+license=('GPL3')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$_tag.tar.gz")
+sha512sums=('db9a7cff735d7cab1efb1c353c68a7bfb1a0eb3feb2352fc8bb1b177be76ccb39f5626d860685a594ada4a54ced8c527440f59258e56197a4c27c671237bed62')
+
+build() {
+  cd $pkgname-$_tag
+
+  python setup.py build
+}
+
+check() {
+  cd $pkgname-$_tag
+
+  python setup.py pytest
+}
+
+package() {
+  cd $pkgname-$_tag
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list