summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a99c03c07afe80b37c92fea77305d73bb4d2f88 (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
# Maintainer: Dino Duratović <dinomol  mail  com>
pkgname=obquit-git
pkgver=r59.f84aa4e
pkgrel=1
pkgdesc="Shutdown/reboot/logout utility script"
arch=('any')
url="https://github.com/dglava/obquit"
license=('GPL-3.0-or-later')
depends=('python' 'python-gobject' 'python-cairo' 'gtk3')
makedepends=('git' 'python-setuptools' 'python-installer' 'python-build'
  'python-wheel')
source=('git+https://github.com/dglava/obquit.git')
md5sums=('SKIP')

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

package() {
  cd "$srcdir/${pkgname%-git}/dist"
  python -m installer -d $pkgdir *.whl
  install -Dm 644 "${srcdir}/${pkgname%-git}/data/obquit.conf" "${pkgdir}/etc/obquit.conf"
}