49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
|
# Template file for 'python-dkimpy'
|
||
|
pkgname=python-dkimpy
|
||
|
version=0.9.0
|
||
|
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"
|
||
|
checksum=d2c6b2c6f29434fde48fcd685974cee423d77930dfc6e2d3cb932fecb414d2b1
|
||
|
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
|
||
|
}
|
||
|
}
|