blob: 4a95f0f15baa4c12fe83f6a3b9570ae9b3092cd7 (
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
36
37
38
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
pkgname=damo
pkgver=2.5.2
pkgrel=1
pkgdesc="DAMON user-space tool"
arch=('any')
url='https://damonitor.github.io'
license=('GPL2')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/damonitor/damo/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('ef8469d40a49847b3f783705514d10d08ab885d5c72a40da360bb0b5aa11b25d')
b2sums=('cd4ddb8b45fb11700ec09c56fb468cb9838d2076986bcf43f5c68a74da27f771f66fc900263434f127cdeaa66c0903767c6e480c057464ff944718201e4cf58d')
build() {
cd "$pkgname-$pkgver"
mkdir build && cd build
cp ../packaging/{pyproject.toml,setup.py} .
../packaging/mk_readme.sh "$PWD" "$pkgver"
mkdir -p src/damo
cp -p ../src/*.py src/damo
touch src/damo/__init__.py
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver/build"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" \
../LICENSE
}
|