Created
July 5, 2016 08:17
-
-
Save asergi/bba8591dbb06fac8174836a078112dac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/srcpkgs/python-stormssh/template b/srcpkgs/python-stormssh/template | |
index 77a280a..42cca67 100644 | |
--- a/srcpkgs/python-stormssh/template | |
+++ b/srcpkgs/python-stormssh/template | |
@@ -2,33 +2,36 @@ | |
pkgname=python-stormssh | |
version=0.6.9 | |
revision=1 | |
+noarch=yes | |
wrksrc=storm-${version} | |
build_style=python-module | |
python_versions="2.7 3.4" | |
hostmakedepends="python-setuptools python3.4-setuptools" | |
-depends="python-six python-paramiko python-termcolor python-Flask" | |
-pycompile_module="stormssh" | |
-short_desc="Manage your SSH like a boss" | |
+depends="python-setuptools python-six python-paramiko python-termcolor python-Flask" | |
+pycompile_module="storm" | |
+short_desc="Manage your SSH like a boss (Python2)" | |
maintainer="Diogo Leal <diogo@diogoleal.com>" | |
license="MIT" | |
homepage="https://github.com/emre/storm" | |
distfiles="https://github.com/emre/storm/archive/${version}.tar.gz" | |
checksum=29c20e4ed27604a7cdf2f77fe97d861100d87c0dbaa9ecf6628cf9da917e98ce | |
-noarch=yes | |
+alternatives="stormssh:storm:/usr/bin/storm2.7" | |
-do_install() { | |
- python setup.py install --root="${DESTDIR}/" --optimize=1 | |
+post_install() { | |
vlicense LICENSE | |
} | |
python3.4-stormssh_package() { | |
noarch=yes | |
- depends="python3.4-setuptools" | |
+ depends="python3.4-setuptools python3.4-six python3.4-paramiko | |
+ python3.4-termcolor python3.4-Flask" | |
pycompile_version="3.4" | |
- pycompile_module="stormssh" | |
+ pycompile_module="storm" | |
short_desc="${short_desc/Python2/Python3.4}" | |
+ alternatives="stormssh:storm:/usr/bin/storm3.4" | |
pkg_install() { | |
- python3 setup.py install --root="${DESTDIR}/" --optimize=1 | |
+ vmove usr/bin/*3.4 | |
+ vmove usr/lib/python3.4 | |
vlicense LICENSE | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment