diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e408d4df01f7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-azure-cli-lab + pkgdesc = Microsoft Azure Command-Line Tools DevTestLabs Command Module + pkgver = 0.0.3 + pkgrel = 1 + url = https://github.com/Azure/azure-cli + arch = any + license = MIT + makedepends = python-setuptools + depends = python-azure + depends = python-azure-cli-command-modules-nspkg + depends = python-azure-cli-core + source = https://files.pythonhosted.org/packages/source/a/azure-cli-lab/azure-cli-lab-0.0.3.tar.gz + md5sums = 5c8157a8e6333a0cc6377c932dd4db37 + +pkgname = python-azure-cli-lab + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..34241bd5638e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Kelsey Maes <kelseymaes at outlook dot com> + +_name=azure-cli-lab +pkgname=python-$_name +pkgver=0.0.3 +pkgrel=1 +pkgdesc="Microsoft Azure Command-Line Tools DevTestLabs Command Module" +arch=('any') +url="https://github.com/Azure/azure-cli" +license=('MIT') +depends=('python-azure' 'python-azure-cli-command-modules-nspkg' 'python-azure-cli-core') +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +md5sums=('5c8157a8e6333a0cc6377c932dd4db37') + +build() { + cd "$_name-$pkgver" + python setup.py build +} + +package() { + cd "$_name-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + + rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/__init__.py + rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/__pycache__/__init__.* + + rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/cli/__init__.py + rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/cli/__pycache__/__init__.* + + rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/cli/command_modules/__init__.py + rm "$pkgdir"/usr/lib/python3.?/site-packages/azure/cli/command_modules/__pycache__/__init__.* +} |