2015-10-06 01:06:31 +02:00
|
|
|
# Template file for 'python-keyring'
|
|
|
|
pkgname=python-keyring
|
2015-10-13 20:29:54 +02:00
|
|
|
version=5.6
|
2015-10-06 01:06:31 +02:00
|
|
|
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="http://pypi.python.org/packages/source/k/keyring/"
|
|
|
|
distfiles="${PYPI_SITE}/k/keyring/keyring-${version}.tar.gz"
|
2015-10-13 20:29:54 +02:00
|
|
|
checksum=862e8c7ae689bd1e50bf5940c88317c3afad4b71d7c0e0748b273ef769c66adf
|
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() {
|
|
|
|
vlicense README.rst LICENSE
|
|
|
|
rm ${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/lib/python3.4
|
|
|
|
vlicense README.rst LICENSE
|
|
|
|
}
|
|
|
|
}
|