summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b25285eb767d6e23a6e4699b97360bc53ef16518 (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
# Maintainer: nathan marchiori <nathan.marchiori@gmail.com>
pkgname="python-aw-core"
_name=${pkgname#python-}
pkgver=0.5.17
pkgrel=1
pkgdesc="Core library for ActivityWatch"
arch=("any")
url="https://github.com/ActivityWatch/aw-core"
license=('MPL-2.0')
depends=()
makedepends=(python-build python-installer git poetry)
provides=()
source=("$_name::git+https://github.com/ActivityWatch/aw-core")
sha256sums=("SKIP")

pkgver() {
	cd "$_name"
	printf "%s" "$(poetry version | awk '{print $NF}')"
}

build() {
	cd "$_name"
	python -m build --wheel --no-isolation
}

package() {
	cd "$_name"
	python -m installer --destdir="$pkgdir" dist/*.whl
}