summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ecf2456e5b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Timofey Titovets <nefelim4ag@gmail.com>
+
+pkgname=libvirt-autoballoon-git
+pkgver=v0.1.r0.g624982d
+pkgrel=1
+pkgdesc="Libvirt-qemu autoballooning"
+arch=('any')
+url="https://github.com/Nefelim4ag/libvirt-autoballoon.git"
+license=('GPL3')
+depends=('systemd' 'bash' 'libvirt')
+makedepends=('git' 'make')
+source=("$pkgname"::'git+https://github.com/Nefelim4ag/libvirt-autoballoon.git#branch=master')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "$srcdir/${pkgname}/"
+ make install PREFIX="$pkgdir"
+ mkdir -p "$pkgdir/usr/"
+ mv -v "$pkgdir/lib" "$pkgdir/usr/"
+}