gentoo-overlay/app-backup/minisnap/minisnap-0_p20240904.ebuild
Alexander Miroshnichenko 91027cd962 app-backup/minisnap: update SRC_URI
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
2025-10-10 16:51:24 +03:00

33 lines
858 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
EGIT_COMMIT=358aae69
DESCRIPTION="Fast and secure initramfs generator"
HOMEPAGE="https://git.sr.ht/~adrian-blx/minisnap"
SRC_URI="https://git.sr.ht/~adrian-blx/minisnap/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz
https://git.millerson.name/alex/gentoo-artifacts/releases/download/${PN}-${EGIT_COMMIT}-vendor/${PN}-${EGIT_COMMIT}-vendor.tar.xz"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
ego build cmd/msnap.go cmd/conf.go
}
src_install() {
dodoc *.conf
dobin msnap
}
pkg_postinst() {
elog "To configure schedule for each volume define them in the /etc/minisnap.conf configuration file"
elog "See /usr/share/doc/${P}-${EGIT_COMMIT}/ for examples"
}