Created
April 10, 2012 11:20
-
-
Save samueltardieu/2350602 to your computer and use it in GitHub Desktop.
Working PKGBUILD for saleae-logic
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
# Contributor: Kyle Keen <[email protected]> | |
pkgname=saleae-logic | |
pkgver=1.1.15 | |
pkgrel=3 | |
pkgdesc="High speed USB logic analyzer." | |
arch=(i686 x86_64) | |
url="http://www.saleae.com/" | |
license=('unknown') # closed source, none given | |
depends=('gcc-libs' 'gtk2' 'libice') | |
makedepends=() | |
case $CARCH in | |
'i686') | |
source=("http://downloads.saleae.com/Logic $pkgver (32-bit).zip" \ | |
"http://downloads.saleae.com/Logic Guide.pdf") | |
md5sums=('70f5cf72c77d9d54777e419fe84e2c21' | |
'836db7ec757b1e6453602ed4831d4765') | |
__arch='' ;; | |
'x86_64') | |
source=("http://downloads.saleae.com/Logic $pkgver (64-bit).zip" \ | |
"http://downloads.saleae.com/Logic Guide.pdf") | |
md5sums=('99f709c340e2e0872e02534e2ec6ca77' | |
'836db7ec757b1e6453602ed4831d4765') | |
__arch=' (64-bit)' ;; | |
esac | |
package() { | |
# for now, it needs /opt | |
cd "$srcdir/Logic $pkgver$__arch" | |
install -d "$pkgdir/opt/saleae-logic" | |
install -d "$pkgdir/usr/share/doc/saleae-logic" | |
cp -r ./ "$pkgdir/opt/saleae-logic/" | |
touch "$pkgdir/opt/saleae-logic/Settings/settings.xml" | |
chmod 0666 "$pkgdir/opt/saleae-logic/Settings/settings.xml" | |
# docs | |
install -Dm644 ../../*.pdf "$pkgdir/usr/share/doc/saleae-logic/" | |
# udev | |
install -Dm644 Drivers/99-SaleaeLogic.rules "$pkgdir/etc/udev/rules.d/99-SaleaeLogic.rules" | |
# launch script | |
install -d "$pkgdir/usr/bin" | |
touch "$pkgdir/usr/bin/logic" | |
echo -e "#!/bin/sh\n/opt/saleae-logic/Logic > /dev/null 2>&1" > "$pkgdir/usr/bin/logic" | |
chmod +x "$pkgdir/usr/bin/logic" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment