diff options
author | Jens John | 2017-06-07 23:46:45 +0200 |
---|---|---|
committer | Jens John | 2017-06-07 23:46:45 +0200 |
commit | 46f0edb07fac2c2becc47502b81023d33ef2fb49 (patch) | |
tree | a4510b39fc8ad91dc9029e86a0f9f74eb44c9b91 /PKGBUILD | |
download | aur-lxc-ps-git.tar.gz |
i
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..81272aab41f9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +pkgname=lxc-ps-git +pkgver=r2.dd941f0 +pkgrel=1 +pkgdesc="Implementation of lxc-ps for LXC 1.x and 2.x" +arch=(any) +url="https://github.com/2ion/lxc-ps" +license=('GPL') +depends=(lxc python-psutil) +makedepends=(git) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=('lxc-ps-git::git+https://github.com/2ion/lxc-ps.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-VCS}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/${pkgname%-VCS}" + install -Dm755 lxc-ps "$pkgdir"/usr/bin/lxc-ps +} |