summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1239885b167679b331dba416851793a64ca23cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Ninso112
pkgname=wakewhy
pkgver=1.0.0
pkgrel=1
pkgdesc="A lightweight CLI tool to identify why a Linux system woke from suspend/sleep mode"
arch=('any')
url="https://github.com/Ninso112/wakewhy"
license=('GPL3')
depends=('python>=3.8')
makedepends=('python-build' 'python-installer' 'python-wheel' 'git')
source=("${pkgname}::git+https://github.com/Ninso112/wakewhy.git#branch=main")
sha256sums=('SKIP')

build() {
    cd "${srcdir}/${pkgname}"
    python -m build --wheel --no-isolation
}

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