makedeb
A command-line interface for Hetzner Cloud
Click here to go back to the commit logs for hcloud.
Hash: fd8cbd3623eea4e4bad9f76cb9852fa45a28cf37
Message: Use build function for the build command
diff --git a/PKGBUILD b/PKGBUILD
index aef56b5..567024c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,9 +16,13 @@ prepare(){
sed -i "s/was not built properly/v${pkgver}/" version.go
}
-package() {
+build(){
cd cli/
go build -o hcloud cmd/hcloud/main.go
+}
+
+package() {
+ cd cli/
mkdir -p "${pkgdir}/usr/bin"
cp hcloud "${pkgdir}/usr/bin/"
}
\ No newline at end of file