add Arch Linux package
This commit is contained in:
parent
f171c5d59e
commit
0fc83e9255
|
@ -0,0 +1,26 @@
|
|||
# $Id$
|
||||
# Maintainer: Patrick Hüther <patrick dot huether at gmail dot com>
|
||||
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
|
Binary file not shown.
|
@ -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:
|
Loading…
Reference in New Issue