diff options
author | Matthew Pfeiffer | 2019-01-02 19:10:13 -0500 |
---|---|---|
committer | Matthew Pfeiffer | 2019-01-02 19:10:13 -0500 |
commit | 06058d35c026996db353541e9ea6f228f8ba9aaa (patch) | |
tree | 554209f0dd273d15849d9f881430923f122f2fb4 /PKGBUILD | |
download | aur-visram-git.tar.gz |
Init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ad5d67da8b0f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Matthew Pfeiffer (spferical@gmail.com) +pkgname=visram-git +_pyname=visram +pkgver=r134.efc7012 +pkgrel=1 +pkgdesc='Graphical RAM usage visualizer (git version)' +arch=('any') +url='https://github.com/Spferical/visram/' +license=('MIT') +depends=('python' 'python-matplotlib' 'python-psutil' 'python-pyqt5') +makedepends=('git') +source=('git+https://github.com/Spferical/visram.git') +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pyname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + + +package() { + cd "${srcdir}/${_pyname}" + python setup.py install --root="${pkgdir}/" --optimize=1 + install -D -m644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT" + install -D -m644 xdg/${_pyname}.desktop "${pkgdir}/usr/share/applications/${_pyname}.desktop" +} + +# vim:set ts=2 sw=2 et: |