# Maintainer: Erich Eckner pkgname=acme2certifier pkgver=0.36.r1.g82d539dd _commit="${pkgver##*.g}" pkgrel=1 pkgdesc='experimental acme server written in python' arch=('any') url='https://github.com/grindsa/acme2certifier' license=('GPL3') depends=( 'python-jwcrypto' 'python-pyopenssl' 'python-dnspython' 'python-pytz' 'python-dateutil' 'python-requests' 'python-deprecated' 'python-socks' ) makedepends=( 'git' # 'python-setuptools' ) source=( "${pkgname}::git+https://github.com/grindsa/${pkgname}.git#commit=${_commit}" 'systemd.patch' 'ssl.conf' ) sha512sums=('a09ec54a1fff742159c4eb129f7f4df89a6e1694719a3b18c0ac75d8f42727e601570b5bc3ae75dd47e4b12376b25f9b0c14a836c196c1674c57295e5930f79b' '6700736f127297293067930e92b711c579d800c684b587ca2c5cbc2430dee241500932b57398d87a4dbf4111483bf0942814a06587bbe2a77958c9da18a18e63' '3ed87346bf0776f50e452b1928c8f24db5498a5af1010042e9680ca136242f49e78d30ebca5e4328f485d1c051ab51f859a1ae2f936e0c6eb5b1cde700b3b201') install="${pkgname}.install" pkgver() { git -C "${pkgname}" describe --tags "${_commit}" \ | sed ' s/-/.r/ s/-/./ ' } #build() { # cd "${srcdir}/${pkgname}" # python setup.py build #} prepare() { cd "${srcdir}/${pkgname}" patch -p1 -i "${srcdir}/systemd.patch" } package() { cd "${srcdir}/${pkgname}" # python setup.py install --root="${pkgdir}" install -Dm644 \ examples/nginx/uwsgi.service \ "${pkgdir}/usr/lib/systemd/system/acme2certifier.service" backup+=('etc/uwsgi/acme2certifier.ini') install -Dm644 \ examples/nginx/acme2certifier.ini \ "${pkgdir}/etc/uwsgi/acme2certifier.ini" install -dm755 -o http -g http "${pkgdir}/var/lib/${pkgname}" mv acme_srv examples tools "${pkgdir}/var/lib/${pkgname}/" install -dm755 -o http -g http "${pkgdir}/var/lib/${pkgname}/acme_srv/ca" install -Dm644 -t "${pkgdir}/var/lib/${pkgname}/examples/" "${srcdir}/ssl.conf" chown -R http:http "${pkgdir}/var/lib/${pkgname}" install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" docs/* }