From 4928e1343fe5157ca1202ed0e1d1594dfa53cd80 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 24 Mar 2022 12:32:04 +0100 Subject: [PATCH] git.sr.ht: update go build approach --- sr.ht/git.sr.ht/APKBUILD | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/sr.ht/git.sr.ht/APKBUILD b/sr.ht/git.sr.ht/APKBUILD index debb778..25b33ca 100644 --- a/sr.ht/git.sr.ht/APKBUILD +++ b/sr.ht/git.sr.ht/APKBUILD @@ -32,16 +32,7 @@ install="$pkgname.post-install $pkgname.post-upgrade" build() { python3 setup.py build - cd gitsrht-dispatch - go build - cd ../gitsrht-shell - go build - cd ../gitsrht-keys - go build - cd ../gitsrht-update-hook - go build - cd ../api - go build -o gitsrht-api + make } package() { @@ -62,16 +53,11 @@ package() { install -Dm644 "$srcdir"/git.sr.ht.gunicorn.conf.py \ "$pkgdir"/etc/sr.ht/git.sr.ht.gunicorn.conf.py - cd gitsrht-dispatch - install -Dm755 gitsrht-dispatch "$pkgdir"/usr/bin/gitsrht-dispatch - cd ../gitsrht-shell - install -Dm755 gitsrht-shell "$pkgdir"/usr/bin/gitsrht-shell - cd ../gitsrht-keys - install -Dm755 gitsrht-keys "$pkgdir"/usr/bin/gitsrht-keys - cd ../gitsrht-update-hook - install -Dm755 gitsrht-update-hook "$pkgdir"/usr/bin/gitsrht-update-hook - cd ../api - install -Dm755 gitsrht-api "$pkgdir"/usr/bin/gitsrht-api + install -Dm755 gitsrht-dispatch/gitsrht-dispatch "$pkgdir"/usr/bin/gitsrht-dispatch + install -Dm755 gitsrht-shell/gitsrht-shell "$pkgdir"/usr/bin/gitsrht-shell + install -Dm755 gitsrht-keys/gitsrht-keys "$pkgdir"/usr/bin/gitsrht-keys + install -Dm755 gitsrht-update-hook/gitsrht-update-hook "$pkgdir"/usr/bin/gitsrht-update-hook + install -Dm755 api/api "$pkgdir"/usr/bin/gitsrht-api } _nginx() { -- 2.45.2