# Maintainer: Alexander F. Rødseth pkgname=botsay pkgver=1.3.0 pkgrel=1 pkgdesc='Like cowsay, but with randomly generated ASCII robots and color support' arch=(x86_64) url='https://github.com/xyproto/botsay' license=(BSD-3-Clause) makedepends=(git go) source=("git+$url#commit=45b7b43255a7cc76631682d195cf9c5f19aa5f91") # tag: v1.3.0 b2sums=(SKIP) build() { cd $pkgname go build -v -mod=vendor -buildmode=pie -trimpath -ldflags="-s -w -extldflags \"${LDFLAGS}\"" } package() { cd $pkgname install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }