Skip to content

Instantly share code, notes, and snippets.

@tsujigiri
Last active December 16, 2015 18:19
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tsujigiri/5476281 to your computer and use it in GitHub Desktop.
PKGBUILD to install the Debian package from the Leap SDK on Arch Linux – https://www.leapmotion.com/
# Maintainer: Helge Rausch <helge@rausch.io>
# This script is licensed under the MIT license.
# https://gist.github.com/tsujigiri/5476281
#
## Installation
#
# To install the Leap software, you first need to download the SDK for Linux
# from https://developer.leapmotion.com/downloads/leap-motion/sdk using your
# developer account. Unpack it, place the included .deb files in the same
# directory as this PKGBUILD and run `makepkg`. If all goes well this will
# create a package file, which can be installed by running:
#
# pacman -U leap-0.7.9-1-x86_64.pkg.tar.xz
#
# or
#
# pacman -U leap-0.7.9-1-i686.pkg.tar.xz
#
# depending on your architecture.
#
pkgname=leap
pkgver=0.7.9
pkgrel=1
pkgdesc="Installs the Debian package from the Leap SDK to Arch Linux"
arch=('i686' 'x86_64')
url="https://developer.leapmotion.com/downloads/leap-motion/sdk"
depends=('mesa' 'libxxf86vm')
license=('unknown')
case $CARCH in
'x86_64')
_arch='x64'
md5sums=('b74782aebe5d34664d9d59b9bb0df24c')
;;
'i686')
_arch='x86'
md5sums=('f7dc03255f8f692fe610a2970698775b')
;;
esac
source=("Leap-${pkgver}-${_arch}.deb")
package() {
tar -zxf data.tar.gz -C "${pkgdir}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment