Skip to content

Commit

Permalink
testing/homer-app: use pre-built binary
Browse files Browse the repository at this point in the history
Building from source build version 1.1.7 instead of the expected pkgrel
Upstream GH issue: sipcapture/homer-app#555
  • Loading branch information
rnalrd committed May 1, 2024
1 parent 84da90d commit 2e25378
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions testing/homer-app/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Maintainer: Leonardo Arena <[email protected]>
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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2e25378

Please sign in to comment.