summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14bd8a1a9d7df04707aa8ed4afc4e0a779b6ec0b (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
# Maintainer: Keithsel <keithsel@disroot.org>
pkgname=dekl-git
pkgver=0.1.0.r1.gf696bb9
pkgrel=1
pkgdesc='Declarative Arch Linux system manager'
arch=('any')
url='https://github.com/Keithsel/dekl'
license=('GPL-3.0-or-later')
depends=(
    'pacman'
    'python'
    'python-typer'
    'python-yaml'
    'python-rich'
)
makedepends=(
    'git'
    'python-build'
    'python-installer'
    'python-hatchling'
)
optdepends=(
    'paru: AUR support'
    'yay: AUR support'
)
provides=('dekl')
conflicts=('dekl')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --long --tags --abbrev=7 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || \
        printf "0.0.0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

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

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