# Maintainer: Rasmus Lindroth pkgname=i3keys pkgver=0.0.2 pkgrel=1 pkgdesc='Lists used and unused keys in your i3wm config' arch=('any') url="https://github.com/RasmusLindroth/$pkgname" license=('MIT') makedepends=('go') source=("https://github.com/RasmusLindroth/$pkgname/archive/$pkgver.tar.gz") sha256sums=('98d681c9a9d540de33778731d4747b4631299d6765d1df5db413fb7b62386d60') build() { cd $pkgname-$pkgver go build \ -gcflags "all=-trimpath=$PWD" \ -asmflags "all=-trimpath=$PWD" \ -ldflags "-extldflags $LDFLAGS" \ -o $pkgname . } package() { cd $pkgname-$pkgver install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname }