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

Santiago Torres-Arias sangy at archlinux.org
Sun Jul 12 22:29:40 UTC 2020


    Date: Sunday, July 12, 2020 @ 22:29:40
  Author: sangy
Revision: 663376

upgpkg: python-bitstring 3.1.6-1

Added:
  python-bitstring/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-12 22:29:40 UTC (rev 663376)
@@ -0,0 +1,30 @@
+# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
+# Maintainer: nblock <nblock [/at\] archlinux DOT us>
+# Contributor: Thomas Conneely <tc116 at le dot ac dot uk>
+
+pkgname=python-bitstring
+pkgver=3.1.6
+pkgrel=1
+pkgdesc='Python module designed to help make the creation, manipulation and analysis of binary data as simple and natural as possible'
+arch=('any')
+url="https://scott-griffiths.github.io/bitstring/"
+license=('MIT')
+depends=('python' 'python-setuptools')
+source=("https://github.com/scott-griffiths/bitstring/archive/${pkgname/python-}-${pkgver}.tar.gz")
+sha256sums=('41fbc1d71b871f985dfe00d2e74e17add8b47e51e1a9e0634ae4c18ea7181418')
+
+build() {
+  # still unsure why the upstream tarball has the name repeated twice...
+  cd "${srcdir}/${pkgname/python-}-${pkgname/python-}-${pkgver}"
+
+  python setup.py build
+}
+
+package() {
+  cd "${srcdir}/${pkgname/python-}-${pkgname/python-}-${pkgver}"
+
+  python setup.py install --root="${pkgdir}/" --optimize=1
+  install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list