34 lines
931 B
Bash
34 lines
931 B
Bash
# 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
|
|
}
|