2023-09-06 04:17:35 +00:00

36 lines
1.1 KiB
Plaintext

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=irclog2html
pkgver=3.0.0
pkgrel=0
pkgdesc="Script to convert IRC logs to HTML and other formats"
url="https://mg.pov.lt/irclog2html/"
arch="noarch"
license="GPL-2.0-or-later"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-mock py3-pytest py3-zope-testing"
subpackages="$pkgname-pyc"
source="https://github.com/mgedmin/irclog2html/archive/refs/tags/$pkgver/irclog2html-$pkgver.tar.gz"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
install -Dpm 0644 src/$pkgname/irclog.css \
"$pkgdir"/usr/share/$pkgname/irclog.css
}
sha512sums="
8924be06058c92f772c07156bf696d00f5ad6814d2b5a5e84469b166a3690a0b98847b28aefc5545f3bda21822fadf693bb599867572e53b481ea8e2a0e9143e irclog2html-3.0.0.tar.gz
"