updated arch packaging scripts with official ones

This commit is contained in:
Daniel Pavel 2013-05-26 01:32:46 +03:00
parent db53de2233
commit 8f2ee555ec
2 changed files with 31 additions and 35 deletions

View File

@ -1,26 +1,29 @@
# $Id$ # Maintainer: Arnaud Taffanel <dev@taffanel.org>
# Maintainer: Patrick Hüther <patrick dot huether at gmail dot com>
pkgname=solaar pkgname=solaar
pkgver=0.8.8.1 pkgver=0.8.8.1
pkgrel=1 pkgrel=1
pkgdesc="Linux devices manager for the Logitech Unifying Receiver" pkgdesc="Device manager for Logitech's Unifying receiver peripherals"
arch=("any") url="http://pwr.github.com/Solaar/"
url="http://pwr.github.io/Solaar/" license=('GPL2')
license=('GPL') groups=()
depends=( arch=('any')
'systemd' 'python' 'python-pyudev' depends=('python' 'python-pyudev' 'python-gobject' 'pygtk')
) makedepends=('python')
optdepends=( provides=('solaar')
'gtk3: required for GUI application' conflicts=('solaar')
'gobject-introspection: required for GUI application' options=(!emptydirs)
'python-gobject: required for GUI application'
)
install=solaar.install install=solaar.install
source=("https://github.com/pwr/Solaar/archive/$pkgver.tar.gz") source=("https://github.com/pwr/Solaar/archive/${pkgver}.tar.gz"
md5sums=('6b61313b0b113ffcd38b1d6ffbaf5ba3') 'solaar.install')
md5sums=('2fee5353702b32e6958a51c2e603178f'
'2416fcb58a4c24da5bbb94a9207799b4')
package() { package() {
cd "$srcdir/Solaar-$pkgver" cd "$srcdir/Solaar-${pkgver}/"
python setup.py install --root="$pkgdir/" --optimize=1 python3 setup.py install --root="$pkgdir/" --optimize=1
install -D -m0644 rules.d/99-logitech-unifying-receiver.rules \
"$pkgdir/etc/udev/rules.d/99-logitech-unifying-receiver.rules"
} }
#vim: set ft=PKGBUILD sw=2 ts=2 et
# vim:set ts=2 sw=2 et:

View File

@ -1,17 +1,10 @@
## arg 1: the new package version pre_install() {
post_install() { if ! getent group plugdev >/dev/null; then
echo "Installing udev rules..." groupadd --system plugdev
echo "Please make sure the plugdev group exists on your system and your user is a member" fi
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" post_install() {
echo "Reloading udev rules..." udevadm control --reload-rules
udevadm control --reload-rules echo "To be able to use this application, user must be in the plugdev group."
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: