diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b76f1819d4a7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Packager: Melissa Nuño +# Maintainer: Melissa Nuño + +pkgname=vfio-kvm-git +pkgver=0.1.0.r5.g9a49779 +pkgrel=1 +pkgdesc="A systemd service that manages switching input devices between a VFIO host and guest" +arch=('any') +url='https://github.com/dangle/vfio-kvm' +license=('MIT') +depends=('python>=3.7' 'python-evdev' 'python-dbus-next') +makedepends=('git') +provides=(${pkgname%-*}) +conflicts=(${pkgname%-*}) +source=('git+https://github.com/dangle/vfio-kvm.git') +md5sums=('SKIP') + +pkgver() { + cd "${pkgname%-*}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$srcdir/${pkgname%-*}" + install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm644 "config/dbus/vfio-kvm.xml" "${pkgdir}/etc/dbus-1/system.d/vfio-kvm.conf" + install -Dm644 "config/systemd/vfio-kvm.service" -t "${pkgdir}/usr/lib/systemd/system" + install -Dm755 "vfio-kvm.py" "${pkgdir}/usr/bin/vfio-kvm" +} |