summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60bc34cdf5d0007cc62328c8f3f2a1b6a8bcff73 (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
# Maintainer: Evan Edwards <evan@ejedev.com>

pkgname=ammo-git
_pkgname=ammo
pkgver=0.1.0.r605.35fce7b
_pkgver=0.1.0
_commit=35fce7b804022fe34b41d5c0944a33f8517975de
pkgrel=2
pkgdesc="Almost Manual Mod Organizer - The Definitive CLI Mod Manager for Linux"
url="https://github.com/cyberrumor/ammo"
license=('GPL-2.0-only')
arch=('any')
depends=('python' 'uv' 'python-installer' '7zip')
provides=('ammo')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov')
source=("git+https://github.com/cyberrumor/ammo.git#commit=$_commit")
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "%s.r%s.%s" "$_pkgver" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  uv build
}

check() {
  cd "$_pkgname"
  python -m pytest -cov
}

package() {
  cd "$_pkgname"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}