From 2e25378ec8089ee440e63fe3ce40ba2a86c321ab Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 1 May 2024 09:06:49 +0000 Subject: [PATCH] testing/homer-app: use pre-built binary Building from source build version 1.1.7 instead of the expected pkgrel Upstream GH issue: https://github.com/sipcapture/homer-app/issues/555 --- testing/homer-app/APKBUILD | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/testing/homer-app/APKBUILD b/testing/homer-app/APKBUILD index 921656ae190b..05e350460b34 100644 --- a/testing/homer-app/APKBUILD +++ b/testing/homer-app/APKBUILD @@ -1,16 +1,17 @@ # Maintainer: Leonardo Arena pkgname=homer-app pkgver=1.4.59 -pkgrel=3 +pkgrel=4 pkgdesc="HOMER 7.x Front-End and API Server" url="http://sipcapture.io" arch="x86_64" license="AGPL-3.0-or-later" -makedepends="go" +makedepends="" install="$pkgname.pre-install" -options="net" +options="net !check" subpackages="$pkgname-doc $pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-app/archive/refs/tags/$pkgver.tar.gz + https://github.com/sipcapture/homer-app/releases/download/$pkgver/homer-app https://github.com/sipcapture/homer-app/releases/download/$pkgver/homer-ui-$pkgver.tgz $pkgname.initd @@ -21,22 +22,24 @@ export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" -prepare() { - default_prepare - go mod download -} +#prepare() { +# default_prepare +# go mod download +#} build() { - make modules - make all +# make modules +# make all + return 0 } check() { - "release/homer-app_linux_amd64/homer-app" --version + "release/homer-app_linux_amd64/homer-app" -version } package() { - install -D -m755 release/homer-app_linux_amd64/homer-app "$pkgdir"/usr/bin/homer-app + #install -D -m755 release/homer-app_linux_amd64/homer-app "$pkgdir"/usr/bin/homer-app + install -D -m755 "$srcdir/$pkgname" "$pkgdir"/usr/bin/homer-app install -D -m644 etc/webapp_config.json "$pkgdir"/etc/homer/webapp_config.json mkdir -p "$pkgdir"/usr/share/webapps/homer \ "$pkgdir"/usr/share/licenses/$pkgname @@ -48,6 +51,7 @@ package() { sha512sums=" b62ded15ff9ad2651b4e58ecf497b10208cc0a9075eca01a62328c71402c14a7a12b5903a4ea1ce86d38f38052fbbcdda3f498f120fee77a2fd271b87a41fe3c homer-app-1.4.59.tar.gz +5bc3a7f0bad3100e7d278c9bd09f5e583d8a33a12fec1c8b2a83661e79005a13dbd04d48abbb2a4654db977b107f607c7a4c1f8505de0737233c13de78baac1b homer-app 561f858f72a620abe041d0bff8632e57c25fcfa5f13053fa416471deb4d9d766a4c90602b7a6b0987165d2ba61ccbcf66a567e53a99be63c704b341350258c87 homer-ui-1.4.59.tgz 0eaace71fe329bead88d7180aa5ad80f6924f1e0b3426cfa45811121ff4e907b32a4b08d6db995ae77b9b9ddbdbfc66411c03c2eea9c0393f6b9ed12ad851a77 homer-app.initd f4073ebe4dda4d94a62a810179b707b5245a15e80473576253b992fd1c0a5ba3dbc2645c56ad10ce63c12ab494a9d9da5fe172b68f1b5594e28b45c18df99fe9 0001-change-web-and-config-paths.patch