python-keyring: install bin script
This commit is contained in:
parent
b03c87ef0f
commit
a53c736943
1 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-keyring'
|
# Template file for 'python-keyring'
|
||||||
pkgname=python-keyring
|
pkgname=python-keyring
|
||||||
version=8.2
|
version=8.2
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="keyring-${version}"
|
wrksrc="keyring-${version}"
|
||||||
build_style="python-module"
|
build_style="python-module"
|
||||||
|
@ -21,10 +21,9 @@ pre_build() {
|
||||||
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
||||||
-i setup.py
|
-i setup.py
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense README.rst LICENSE
|
cp -f ${DESTDIR}/usr/bin/keyring{,3.4}
|
||||||
rm ${DESTDIR}/usr/bin/keyring
|
replace_interpreter python ${DESTDIR}/usr/bin/keyring
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-keyring_package() {
|
python3.4-keyring_package() {
|
||||||
|
@ -34,7 +33,7 @@ python3.4-keyring_package() {
|
||||||
depends="python3.4"
|
depends="python3.4"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/bin/keyring3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
vlicense README.rst LICENSE
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue