# Maintainer: Arnaud Taffanel <dev@taffanel.org>

pkgname=solaar
pkgver=0.8.8.1
pkgrel=1
pkgdesc="Device manager for Logitech's Unifying receiver peripherals"
url="http://pwr.github.com/Solaar/"
license=('GPL2')
groups=()
arch=('any')
depends=('python' 'python-pyudev' 'python-gobject' 'pygtk')
makedepends=('python')
provides=('solaar')
conflicts=('solaar')
options=(!emptydirs)
install=solaar.install
source=("https://github.com/pwr/Solaar/archive/${pkgver}.tar.gz" 
        'solaar.install')
md5sums=('2fee5353702b32e6958a51c2e603178f'
         '2416fcb58a4c24da5bbb94a9207799b4')

package() {
  cd "$srcdir/Solaar-${pkgver}/"
  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 ts=2 sw=2 et:
