diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD new file mode 100644 index 00000000..eb7e7e2a --- /dev/null +++ b/packaging/arch/PKGBUILD @@ -0,0 +1,26 @@ +# $Id$ +# Maintainer: Patrick Hüther +pkgname=solaar +pkgver=0.8.7 +pkgrel=1 +pkgdesc="Linux devices manager for the Logitech Unifying Receiver" +arch=("any") +url="http://pwr.github.com/Solaar/" +license=('GPL') +depends=( + 'systemd' 'python' 'python-pyudev' + ) +optdepends=( + 'gtk3: required for GUI application' + 'gobject-introspection: required for GUI application' + 'python-gobject: required for GUI application' + ) +install=solaar.install +source=("https://github.com/pwr/Solaar/archive/$pkgver.tar.gz") +md5sums=('6b61313b0b113ffcd38b1d6ffbaf5ba3') + +package() { + cd "$srcdir/Solaar-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 +} +#vim: set ft=PKGBUILD sw=2 ts=2 et diff --git a/packaging/arch/solaar.install b/packaging/arch/solaar.install new file mode 100644 index 00000000..19ab0070 --- /dev/null +++ b/packaging/arch/solaar.install @@ -0,0 +1,17 @@ +## arg 1: the new package version +post_install() { + echo "Installing udev rules..." + echo "Please make sure the plugdev group exists on your system and your user is a member" + touch "/usr/lib/udev/rules.d/99-logitech-unifying-receiver.rules" + echo 'ACTION=="add", KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", GROUP="plugdev", MODE="0660"' > "/usr/lib/udev/rules.d/99-logitech-unifying-receiver.rules" + chmod a+r "/usr/lib/udev/rules.d/99-logitech-unifying-receiver.rules" + echo "Reloading udev rules..." + udevadm control --reload-rules + echo "Done. Now remove the Unfiying Receiver, wait 10 seconds and plug it in again." + } +post_remove() { + echo "Removing udev rules" + rm "/usr/lib/udev/rules.d/99-logitech-unifying-receiver.rules" + udevadm control --reload-rules +} +# vim:set ts=2 sw=2 et: