# Maintainer: Rasmus Lindroth pkgname=tut pkgver=0.0.23 pkgrel=1 pkgdesc='A TUI for Mastodon with vim inspired keys' arch=('any') url="https://github.com/RasmusLindroth/$pkgname" license=('MIT') makedepends=('go') source=("https://github.com/RasmusLindroth/$pkgname/archive/$pkgver.tar.gz") sha256sums=('84f0f65a747736aeff3f87cdfe2d73e77ed49eeec1a433eddfddf3b13426e72d') 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 }