Skip to content

Instantly share code, notes, and snippets.

@tonylambiris

tonylambiris/PKGBUILD

Last active Oct 1, 2016
Embed
What would you like to do?
PKGBUILD fix for **ImportError: No module named 'razer'**
# Maintainer: Gabriele Musco <emaildigabry@gmail.com>
# Upstream URL: https://github.com/terrycain/razer_drivers
pkgname=python-razer
pkgver=1.0.13
pkgrel=1
pkgdesc="A python library for controlling razer-daemon"
arch=('any')
url="https://github.com/terrycain/razer_drivers"
license=('GPLv3')
depends=('python' 'python-dbus' 'python-numpy')
makedepends=('git')
optdepends=('razercommander-git: gtk frontend for razer-drivers')
install=${pkgname}.install
source=("${pkgname}::git+git://github.com/terrycain/razer_drivers.git#tag=v${pkgver}")
md5sums=('SKIP')
package() {
mkdir -p $pkgdir/usr/lib/python3.5/site-packages
mkdir -p $pkgdir/usr/lib/python3/dist-packages
cp -r $srcdir/$pkgname/pylib/razer $pkgdir/usr/lib/python3.5/site-packages/
cp -r $srcdir/$pkgname/pylib/razer $pkgdir/usr/lib/python3/dist-packages/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.