39 lines
1 KiB
Bash
39 lines
1 KiB
Bash
# Template file for 'python-keyring'
|
|
pkgname=python-keyring
|
|
version=8.5.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="keyring-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python"
|
|
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="${PYPI_SITE}/k/keyring/keyring-${version}.tar.gz"
|
|
checksum=1e04dc88c868eb8a1bee020ec34edf597c65fe4e8d57828fe8345a6174cbffab
|
|
|
|
pre_build() {
|
|
sed -e '/setuptools_scm/d' \
|
|
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
|
-i setup.py
|
|
}
|
|
post_install() {
|
|
cp -f ${DESTDIR}/usr/bin/keyring{,3.4}
|
|
replace_interpreter python ${DESTDIR}/usr/bin/keyring
|
|
}
|
|
|
|
python3.4-keyring_package() {
|
|
noarch=yes
|
|
pycompile_version="3.4"
|
|
pycompile_module="keyring"
|
|
depends="python3.4"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/keyring3.4
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|