# Maintainer: Rasmus Lindroth pkgname=tut pkgver=0.0.39 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=('cf496c919fcb9d752b2f8a451b701a3e40e966ba1b26b8b4ad39f77a7cac1d70') 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 }