summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2022-04-01 10:00:50 -0500
committerLuis Martinez2022-04-01 10:00:50 -0500
commitc29c1c565d78b028796490721ae76fadf250c93a (patch)
treeeb3aa6687dd87129faadf95fca166186edaa35e0
parente69c124db0e893eaf68217ec5b8c63d2a9d95b52 (diff)
downloadaur-python-timingsutil.tar.gz
packaging update
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD17
2 files changed, 15 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 87cc0acf3b9..a544cf1bed7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,14 @@
pkgbase = python-timingsutil
pkgdesc = Collection of timing utilities
pkgver = 1.7.0
- pkgrel = 1
+ pkgrel = 2
url = https://bitbucket.org/daycoder/timingsutil
arch = any
license = MIT
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
+ makedepends = python-wheel
depends = python-logging-helper
source = python-timingsutil-1.7.0.tar.gz::https://files.pythonhosted.org/packages/source/t/timingsutil/timingsutil-1.7.0.tar.gz
sha256sums = 0a24db06da6270d2f883b7a87b5aae92bb655c34849f525ad1ee4a59dcdabd6d
diff --git a/PKGBUILD b/PKGBUILD
index 0b42fc126b9..b2a4887e384 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
pkgname=python-timingsutil
pkgver=1.7.0
-pkgrel=1
+pkgrel=2
pkgdesc="Collection of timing utilities"
url="https://bitbucket.org/daycoder/timingsutil"
arch=('any')
license=('MIT')
depends=('python-logging-helper')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/timingsutil/timingsutil-$pkgver.tar.gz")
sha256sums=('0a24db06da6270d2f883b7a87b5aae92bb655c34849f525ad1ee4a59dcdabd6d')
@@ -19,7 +19,7 @@ prepare() {
build() {
cd "timingsutil-$pkgver"
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
@@ -29,7 +29,12 @@ check() {
package() {
cd "timingsutil-$pkgver"
- PYTHONHASHSEED=0 python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -Dm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+ PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl
+ install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+
+ local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
+ install -d "$pkgdir/usr/share/licenses/$pkgname/"
+ ln -s \
+ "$_site/timingsutil-$pkgver.dist-info/LICENSE.txt" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}