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