[arch-commits] Commit in python-heapdict/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 15:52:36 UTC 2020
Date: Monday, November 9, 2020 @ 15:52:36
Author: foutrelis
Revision: 747208
archrelease: copy trunk to community-staging-any
Added:
python-heapdict/repos/community-staging-any/
python-heapdict/repos/community-staging-any/PKGBUILD
(from rev 747207, python-heapdict/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-heapdict/repos/community-staging-any/PKGBUILD (from rev 747207, python-heapdict/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:52:36 UTC (rev 747208)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=HeapDict
+pkgname=python-${_pkg,,}
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="Heap with decrease-key and increase-key operations"
+arch=(any)
+url="https://github.com/DanielStutzbach/heapdict"
+license=(BSD)
+makedepends=(python-setuptools)
+depends=(python)
+checkdepends=(python-tests)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('8495f57b3e03d8e46d5f1b2cc62ca881aca392fd5cc048dc0aa2e1a6d23ecdb6')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ python test_heap.py
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list