summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f318dc28bcb759e5c28eb60994302005d7ca943 (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
# Maintainer: Jakob Gerhard Martinussen <jakobgm at gmail dot com>
pkgname=astrality-git
pkgver=0.6.r130.g589b228
pkgrel=1

pkgdesc='templates-based configuration file manager'
url='https://astrality.readthedocs.io'
arch=('any')
license=('MIT')

depends=(
    'python'
    'python-mypy_extensions'
    'python-astral'
    'python-jinja'
    'python-yaml'
    'python-requests'
    'python-watchdog-git'
)
makedepends=('python-setuptools' 'git' 'sed')
optdepends=('libyaml: faster YAML config parsing')

source=('astrality::git+https://github.com/JakobGM/astrality.git')
sha256sums=('SKIP')

pkgver() {
    cd astrality
    git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd astrality
    python setup.py build
}

package() {
    cd astrality
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
    install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}