summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14464813930610682aef0fa67628ed5018dff366 (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
51
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: © 2023-present  Gene C <arch@sapience.com>
#
# Arch Linux PKGBUILD for ssl-mgr 
# This builds the latest release tag.
# git HEAD is also well tested.
#
# Maintainer: Gene C <arch@sapience.com>
# Contributor: 
# 
pkgname='ssl-mgr'
pkgdesc='Manage (re)new certificates and handle DANE TLSA key rollover'
_gitname='ssl-mgr'

pkgver=2.5.0
pkgrel=1
url="https://github.com/gene-git/ssl-mgr"

arch=(any)
license=(MIT)
# tomli only needed for python < 3.11
depends=('python>3.10' 'python-dnspython' 'python-tomli-w' 'python-cryptography' 
        'python-dateutil' 'python-netaddr' 'lockmgr' 'certbot')
optdepends=('dns_tools: dnssec and dns server manager')

# To build docs uncommont sphinx/texlive
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-hatch' 'rsync' 'git'
             #'python-sphinx' 'texlive-latexextra' # Docs
            )

_mkpkg_depends=('python>minor')
source=("git+https://github.com/gene-git/${_gitname}#tag=${pkgver}")
sha512sums=('SKIP')

build() {
    cd "${_gitname}"
    /usr/bin/rm -f dist/*
    /usr/bin/python -m build --wheel --no-isolation

    # To build Docs - uncomment these and sphinx makedepends above
#    echo "Build docs"
#    cd ./Docs
#    make html
#    make latexpdf
}

package() {
    cd "${_gitname}"
    ./scripts/do-install ${pkgdir}
}
# vim:set ts=4 sts=4 sw=4 et: