41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'python-keyring'
|
|
pkgname=python-keyring
|
|
version=12.0.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="keyring-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-SecretStorage python-entrypoints python-setuptools"
|
|
pycompile_module="keyring"
|
|
short_desc="Python2 interface to the system keyring service"
|
|
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
|
license="MIT"
|
|
homepage="https://github.com/jaraco/keyring"
|
|
distfiles="https://github.com/jaraco/keyring/archive/${version}.tar.gz"
|
|
checksum=c75df876240f69505b3aea1db4487e6c24870398ebdbc0dfdc723ec182835c6f
|
|
alternatives="keyring:keyring:/usr/bin/keyring2"
|
|
|
|
pre_build() {
|
|
sed -e '/setuptools_scm/d' \
|
|
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
|
-i setup.py
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-keyring_package() {
|
|
noarch=yes
|
|
pycompile_module="keyring"
|
|
depends="python3-SecretStorage python3-entrypoints python3-setuptools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="keyring:keyring:/usr/bin/keyring3"
|
|
pkg_install() {
|
|
vmove usr/bin/keyring3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|