diff options
author | Kelsey Maes | 2017-05-01 22:46:45 -0700 |
---|---|---|
committer | Kelsey Maes | 2017-05-01 22:46:45 -0700 |
commit | c5c1f9f669897a70f6dad2a92fa9fcbcccdb1f01 (patch) | |
tree | 21f897355c1f5f818ab8045dd4e64f2e7d282ce4 | |
download | aur-c5c1f9f669897a70f6dad2a92fa9fcbcccdb1f01.tar.gz |
Initial commit
-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..a0615651a269 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-azure-cli-monitor + pkgdesc = Microsoft Azure Command-Line Tools Monitor 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-monitor/azure-cli-monitor-0.0.3.tar.gz + md5sums = ca3d4da9a2758ce7ea18884e4fe1b711 + +pkgname = python-azure-cli-monitor + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8721b03cbbeb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Kelsey Maes <kelseymaes at outlook dot com> + +_name=azure-cli-monitor +pkgname=python-$_name +pkgver=0.0.3 +pkgrel=1 +pkgdesc="Microsoft Azure Command-Line Tools Monitor 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=('ca3d4da9a2758ce7ea18884e4fe1b711') + +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__.* +} |