48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'python-dkimpy'
|
|
pkgname=python-dkimpy
|
|
version=0.9.2
|
|
revision=1
|
|
archs=noarch
|
|
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=83d5ddc1b83304dbccba1dc7b9e0ee37bec4269bb9ad5779480991525c3811d6
|
|
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() {
|
|
archs=noarch
|
|
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
|
|
}
|
|
}
|