libvirt-usb-hotplug/PKGBUILD

34 lines
931 B
Bash
Raw Normal View History

2020-07-05 01:19:50 +00:00
# Maintainer: David Thurstenson (thurstylark@gmail.com)
pkgname=libvirt-usb-hotplug
pkgver=0.1
pkgrel=1
pkgdesc="Attach and detach USB devices from libvirt guests based on udev rules"
arch=(any)
url="https://git.thurstylark.com/libvirt-usb-hotplug.git"
license=('GPL')
depends=('systemd'
'udev'
'libvirt')
backup=()
source=("libvirt-usb-hotplug.bash"
"libvirt-usb-hotplug.conf"
"libvirt-usb-hotplug.rules"
"libvirt-usb-hotplug@.service"
)
sha256sums=()
package() {
install -Dm755 \
"${srcdir}"/libvirt-usb-hotplug.bash \
"${pkgdir}"/usr/bin/libvirt-usb-hotplug
install -Dm644 \
"${srcdir}"/libvirt-usb-hotplug.conf \
"${pkgdir}"/etc/libvirt-usb-hotplug.conf
install -Dm644 \
"${srcdir}"/libvirt-usb-hotplug.rules \
"${pkgdir}"/usr/lib/udev/rules.d/99-libvirt-usb-hotplug.rules
install -Dm644 \
"${srcdir}"/libvirt-usb-hotplug@.service \
"${pkgdir}"/usr/lib/systemd/system/libvirt-usb-hotplug@.service
}