Created
August 12, 2015 03:03
-
-
Save gdunstone/cce876a3af6e4e932d02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extract package data | |
pattern="Leap-2.*x64.deb" | |
files=( $pattern ) | |
ar vx ${files[0]} | |
tar -xf data.tar.xz | |
# Initialisation | |
sudo rsync -avhP ./etc/init/leapd.conf /etc/ | |
# Device rules | |
sudo rsync -avhP ./lib/udev/rules.d/25-com-leapmotion-leap.rules /lib/udev/rules.d/ | |
# Daemon | |
sudo rsync -ahvP ./usr/sbin/leapd /usr/sbin | |
# Executables | |
cd ./usr/bin/ | |
L=Leap | |
sudo mv Visualizer $L"Visualizer" | |
sudo mv Recalibrate $L"Recalibrate" | |
sudo mv Playground $L"Playground" | |
sudo mv Playground_Data $L"Playground_Data" | |
sudo rsync -ahvP * /usr/bin/ | |
cd ../.. | |
# libs folder | |
sudo rsync -avhP ./usr/lib/Leap /usr/lib/ | |
# shared folder | |
sudo rsync -avhP ./usr/share/Leap /usr/share/ | |
# fix ofxLeapMotion | |
OFX_LEAPMOTION_LIBS=$HOME/openFrameworks/addons/ofxLeapMotion/libs | |
mkdir -p $OFX_LEAPMOTION_LIBS/lib/include | |
mkdir -p $OFX_LEAPMOTION_LIBS/lib/linux64 | |
mkdir -p $OFX_LEAPMOTION_LIBS/lib/linux | |
cd LeapSDK/include | |
rsync -hP * $OFX_LEAPMOTION_LIBS/include | |
cd ../lib/x64 | |
rsync -hP libLeap.so $OFX_LEAPMOTION_LIBS/lib/linux64/libLeap.so | |
cd ../x86 | |
rsync -hP libLeap.so $OFX_LEAPMOTION_LIBS/lib/linux/libLeap.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment