blob: a0264d06a5eee7362f6840ffd609c570c6f1b618 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Julien Virey <julien.virey@gmail.com>
pkgname=hostctl
pkgver=0.7.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=('d43ea8bcdc5d2644c5a7799e0c40a2d79108e9f6705d449895f74103aa07784c')
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
}
|