summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3253fd9580207e395d3836b3412216ebce7baccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Jiří Prokop <jprokop@synaptiko.cz>

pkgname=zsa-wally
pkgver=2.0.0
pkgrel=4
pkgdesc="Wally: Flash your ZSA Keyboard the EZ way."
arch=('i686' 'x86_64')
url="https://github.com/zsa/wally"
license=('MIT')
depends=('gtk3' 'webkit2gtk' 'libusb')
provides=('wally')
source=("https://github.com/zsa/wally/archive/${pkgver}-linux.tar.gz"
	"50-wally.rules"
)
sha256sums=('9dd7dc0b62e3b8ae15684cb10995a8ff04e285ef0bf1a61069040bd7c5c13683'
	'SKIP'
)

build() {
     export GOPATH="$srcdir"/gopath
     cd "$srcdir/wally-$pkgver-linux"
     go get github.com/wailsapp/wails/cmd/wails
     wails build
}


package() {
	install -Dm644 50-wally.rules "$pkgdir"/etc/udev/rules.d/50-wally.rules
	install -Dm755 $srcdir/wally-$pkgver-linux/build/wally "$pkgdir"/usr/bin/wally-bin
     printf "#! /bin/bash\ncd /usr/bin\n ./wally-bin \n" > "$pkgdir"/usr/bin/wally
     chmod uag+x "$pkgdir"/usr/bin/wally
     chmod -R uag+rw $srcdir
}