void-packages/srcpkgs/python-dkimpy/template

49 lines
1.3 KiB
Bash
Raw Normal View History

2018-11-07 13:30:50 +01:00
# Template file for 'python-dkimpy'
pkgname=python-dkimpy
2018-12-10 06:43:25 +01:00
version=0.9.1
2018-11-07 13:30:50 +01:00
revision=1
noarch=yes
wrksrc="dkimpy-${version}"
build_style=python-module
pycompile_module="dkim"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-dnspython"
short_desc="DKIM and ARC email signing and verification library (Python2)"
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="BSD-3-Clause"
homepage="https://launchpad.net/dkimpy"
distfiles="${PYPI_SITE}/d/dkimpy/dkimpy-${version}.tar.gz"
2018-12-10 06:43:25 +01:00
checksum=d29c7959339366d7d5ea4afe2a604aab2f5c062351222a0075f3605007290367
2018-11-07 13:30:50 +01:00
alternatives="
dkimpy:arcsign:/usr/bin/arcsign2
dkimpy:arcverify:/usr/bin/arcverify2
dkimpy:dkimsign:/usr/bin/dkimsign2
dkimpy:dkimverify:/usr/bin/dkimverify2
dkimpy:dknewkey:/usr/bin/dknewkey2"
pre_configure() {
sed -n '3,22p' setup.py > LICENSE
}
post_install() {
vlicense LICENSE
}
python3-dkimpy_package() {
noarch=yes
pycompile_module="dkim"
depends="python3-dnspython"
short_desc="${short_desc/Python2/Python3}"
alternatives="
dkimpy:arcsign:/usr/bin/arcsign3
dkimpy:arcverify:/usr/bin/arcverify3
dkimpy:dkimsign:/usr/bin/dkimsign3
dkimpy:dkimverify:/usr/bin/dkimverify3
dkimpy:dknewkey:/usr/bin/dknewkey3"
pkg_install() {
vmove usr/lib/python3*
vmove usr/bin/*3
vlicense LICENSE
}
}