blob: 251d1e92f15464b1a64e78c9b2fac35d55ed9c7a (
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.7.6
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=('b4929343c7fd8600e798f4cbe335289cc34aedd9654686f714ab3fbc1e12395d')
b2sums=('817da487a26a30c911ccc8291e00dec1abb2c2c19f2eecd7e6079966acab7119ec7b6d719bccb00bf9e3a414a37ce17dd4f6c68ef3acd27891261cf114185235')
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
}
|