[arch-commits] Commit in python-heapdict/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:18:57 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:18:57
Author: felixonmars
Revision: 1057978
archrelease: copy trunk to community-staging-any
Added:
python-heapdict/repos/community-staging-any/
python-heapdict/repos/community-staging-any/PKGBUILD
(from rev 1057976, python-heapdict/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-heapdict/repos/community-staging-any/PKGBUILD (from rev 1057976, python-heapdict/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:18:57 UTC (rev 1057978)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=HeapDict
+pkgname=python-${_pkg,,}
+pkgver=1.0.1
+pkgrel=4
+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