blob: 1ffbdaf76bb37d51762176ee07a65db7d5d86583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: kidpixo <kidpixo at gmail dot com>
pkgname=arch-check
pkgver=0.4.0
# upstream repository name (GitHub) — note underscore vs package name
upstream_name=arch_check
pkgrel=1
pkgdesc="Python stdlib Arch Linux health checker: disks, kernel, services, SMART. Output to terminal or JSON."
arch=('any')
url="https://github.com/kidpixo/arch_check"
license=('0BSD')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
# Use the GitHub tag release (use upstream_name for the archive filename)
source=("$upstream_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz" "LICENSE")
sha256sums=('80f73e00d5a77c0c65ca689ed8e2e632159d2e50b94fd856332a11bae5bb511a'
'7056c04df17a4e0f0bac9f787f347c9cd892cee6323d1c89528090afd0b934a3')
build() {
cd "$upstream_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$upstream_name-$pkgver"
# Find the built wheel file in dist/ and pass it to the installer
wheel_file=$(ls dist/*.whl 2>/dev/null | head -n1)
if [ -z "$wheel_file" ]; then
echo "No wheel found in dist/, aborting"
return 1
fi
python -m installer --destdir="$pkgdir" "$wheel_file"
# Install the license file (required for 0BSD as it's not in common-licenses)
install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|