# Maintainer: Julien Virey pkgname=hostctl pkgver=0.8.0 pkgrel=1 pkgdesc='Command-line tool to manage your hosts file' arch=('x86_64') url='https://github.com/guumaster/hostctl' license=('MIT') makedepends=('go-pie') source=("$url/archive/v$pkgver.tar.gz") sha256sums=('a1d0fc29e7f091fcce3b4cd88cecad3cd633ee3f34435a3a08cbc02bb4bf09da') build() { cd $pkgname-$pkgver go build \ -trimpath \ -ldflags "-extldflags $LDFLAGS" \ -o $pkgname . } package() { cd $pkgname-$pkgver install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname }