summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d822493589703229a9f30e7230889fcf438516f7 (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
39
40
41
42
43
44
45
46
47
48
49
50
#Maintainer:	MajorX234 <majorx234@googlemail.com>
pkgname=isd
pkgdesc="TUI for systemd"
pkgver=0.3.0
pkgrel=2
arch=("any")
url="https://github.com/isd-project/isd"
license=("GPL3")
provides=(isd)
conflicts=("${pkgname}-git")

depends=(python
  systemd
  python-xdg-base-dirs  
  python-pfzy         
  python-textual          
  python-pydantic-settings        
  python-pydantic          
  python-types-pyyaml
  python-hatchling
)
makedepends=(
  python
  python-build
  python-installer
  python-setuptools
  python-wheel
  python-xdg-base-dirs
  python-pfzy
  python-textual
  python-pydantic-settings
  python-pydantic
  python-types-pyyaml
  python-hatchling
)

source=("https://github.com/isd-project/isd/archive/refs/tags/v${pkgver}.zip")
sha256sums=('8d946c667571ac09e7ca394312be98c4cb2e0acb93d4407248df201e3d9bb611')

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

package() {
  cd ${srcdir}/"$pkgname"-"$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -vDm0644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}