blob: 4f9f58512f745f53fc55a6f956347606400bf3ae (
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
27
28
29
30
31
32
33
|
# Maintainer: Stipe Kotarac <stipe@kotarac.net>
# Contributor: Carlos Mogas da Silva <r3pek@r3pek.org>
pkgname=docker-machine-driver-hetzner
pkgver=5.0.2
pkgrel=1
pkgdesc="Hetzner driver for Docker Machine"
arch=('x86_64')
url="https://github.com/JonasProgrammer/docker-machine-driver-hetzner"
license=('MIT')
depends=('docker-machine')
makedepends=('go')
source=("https://github.com/JonasProgrammer/$pkgname/archive/${pkgver}.tar.gz")
prepare() {
mkdir -p "$srcdir/src/github.com/JonasProgrammer"
cp -r "$srcdir/$pkgname-$pkgver" "$srcdir/src/github.com/JonasProgrammer/$pkgname"
cd "$srcdir/src/github.com/JonasProgrammer/$pkgname"
GOPATH="$srcdir" go get -d
}
build() {
cd "$srcdir/src/github.com/JonasProgrammer/$pkgname"
GOPATH="$srcdir" go build -o "$pkgname"
GOPATH="$srcdir" go clean -modcache
}
package() {
install -Dm755 "$srcdir/src/github.com/JonasProgrammer/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$srcdir/src/github.com/JonasProgrammer/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha256sums=('8df11bde7d96f7d0adceb2d97cd5fb117372259cd528b3f582dc0e6094ded409')
|