portage/dev-util/wails/wails-9999.ebuild
Sam Therapy 731beafe7a
Some checks failed
pkgcheck / build (push) Failing after 54s
Add aurpublish
2024-03-12 22:15:52 +01:00

43 lines
1,023 B
Bash

# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Create beautiful applications using Go and JavaScript"
HOMEPAGE="https://github.com/wailsapp/wails https://wails.io/"
# Override the default path to v2
S="${WORKDIR}/${P}/v2"
LICENSE="MIT BSD BSD-2 Apache-2.0 MPL-2.0"
SLOT="0"
RDEPEND="sys-devel/gcc
net-libs/webkit-gtk
net-libs/nodejs
dev-util/pkgconf"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/wailsapp/wails.git"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
else
SRC_URI="https://github.com/wailsapp/wails/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://git.froth.zone/api/packages/packaging/generic/portage/deps/${P}-vendor.tar.xz"
KEYWORDS="~amd64 ~arm64 ~x86"
fi
src_compile() {
ego build -ldflags "-s -w -X main.version=${PV} -X main.date=$(date -I) -X main.builtBy=portage" ./cmd/wails
}
src_install() {
dobin ./${PN}
einstalldocs
}