2015-10-06 01:06:31 +02:00
|
|
|
# Template file for 'python-keyring'
|
|
|
|
pkgname=python-keyring
|
2016-02-05 23:38:23 +01:00
|
|
|
version=8.3
|
|
|
|
revision=1
|
2015-10-06 01:06:31 +02:00
|
|
|
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"
|
2016-01-09 20:04:00 +01:00
|
|
|
homepage="https://github.com/jaraco/keyring"
|
2015-10-06 01:06:31 +02:00
|
|
|
distfiles="${PYPI_SITE}/k/keyring/keyring-${version}.tar.gz"
|
2016-02-05 23:38:23 +01:00
|
|
|
checksum=284f754d86bd176cd44f57fdc33b9d0decc0cdfc38f06eec649b5b1f93e40dc2
|
2015-10-06 01:06:31 +02:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
sed -e '/setuptools_scm/d' \
|
|
|
|
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
|
|
|
-i setup.py
|
|
|
|
}
|
|
|
|
post_install() {
|
2016-02-02 23:49:03 +01:00
|
|
|
cp -f ${DESTDIR}/usr/bin/keyring{,3.4}
|
|
|
|
replace_interpreter python ${DESTDIR}/usr/bin/keyring
|
2015-10-06 01:06:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
2016-02-02 23:49:03 +01:00
|
|
|
vmove usr/bin/keyring3.4
|
2015-10-06 01:06:31 +02:00
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|