# Maintainer: Rasmus Lindroth pkgname=tut pkgver=1.0.14 pkgrel=1 pkgdesc='A TUI for Mastodon with vim inspired keys' arch=('any') conflicts=('tut-bin') url="https://github.com/RasmusLindroth/$pkgname" license=('MIT') makedepends=('go') source=("$pkgname-$pkgver.tar.gz::https://github.com/RasmusLindroth/$pkgname/archive/refs/tags/$pkgver.tar.gz") sha256sums=('3184313084bc3ee4e991466832af85009d82e9f09c8f574764472ed9cd898903') build() { cd $pkgname-$pkgver go build \ -gcflags "all=-trimpath=$PWD" \ -asmflags "all=-trimpath=$PWD" \ -ldflags "-extldflags $LDFLAGS" \ -o $pkgname . } package() { cd $pkgname-$pkgver install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md install -Dm644 config.example.ini "$pkgdir"/usr/share/doc/$pkgname/config.example.ini install -Dm644 config/toot.tmpl "$pkgdir"/usr/share/doc/$pkgname/toot.tmpl install -Dm644 config/user.tmpl "$pkgdir"/usr/share/doc/$pkgname/user.tmpl install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname }