[arch-commits] Commit in python-bitcoinlib/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:39:14 UTC 2021


    Date: Friday, December 3, 2021 @ 00:39:14
  Author: felixonmars
Revision: 1063933

archrelease: copy trunk to community-staging-any

Added:
  python-bitcoinlib/repos/community-staging-any/
  python-bitcoinlib/repos/community-staging-any/PKGBUILD
    (from rev 1063932, python-bitcoinlib/trunk/PKGBUILD)

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

Copied: python-bitcoinlib/repos/community-staging-any/PKGBUILD (from rev 1063932, python-bitcoinlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:39:14 UTC (rev 1063933)
@@ -0,0 +1,36 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-bitcoinlib
+pkgver=0.11.0
+_tag=$pkgname-v$pkgver
+pkgrel=3
+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=('fe6c86e19a99e9b62fa4d26094e9b578d259ef9c14f4824d6710d090f43a909607ecae06f4ddcd8a22c86c9dfb1781fbe79cf60d13c8d815cd9ac034027239c5')
+
+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