This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/booster-evolution/template

61 lines
1.5 KiB
Bash
Raw Normal View History

2023-10-24 11:51:06 +01:00
# Template file for 'booster-evolution'
pkgname=booster-evolution
2023-09-01 00:38:35 +01:00
version=0.11
2023-12-04 20:42:33 +00:00
revision=4
2023-08-05 21:19:04 +01:00
build_style=go
go_import_path=github.com/anatol/booster
hostmakedepends="git ruby-ronn"
short_desc="Fast and secure initramfs generator"
2023-09-01 00:38:35 +01:00
maintainer="Tracker-Friendly <jliwin98@danwin1210.de>"
2023-08-05 21:19:04 +01:00
license="MIT"
homepage="https://github.com/anatol/booster"
2023-10-29 15:34:13 +00:00
conf_files="/etc/booster.yaml"
2023-12-04 20:42:33 +00:00
#distfiles="https://github.com/anatol/booster/archive/${version}.tar.gz"
2023-09-01 00:38:35 +01:00
checksum=2f111b1729143c38ec287e5567ae9f57e0fb8118cc11afa22657da8ac9b0105a
2023-10-24 11:51:06 +01:00
replaces="booster"
2023-08-05 21:19:04 +01:00
alternatives="
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/booster/kernel-hook-postinst
initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/booster/kernel-hook-postrm
"
_build_component() {
go install -p "$XBPS_MAKEJOBS" -mod=readonly -x
}
do_build() {
2023-12-04 20:42:33 +00:00
git clone https://github.com/anatol/booster.git --branch=wip
mv booster/* .
rm -rf booster
2023-08-05 21:19:04 +01:00
( cd generator && _build_component )
( cd init && CGO_ENABLED=0 _build_component )
ronn docs/manpage.md
2023-10-29 15:34:13 +00:00
touch booster.yaml
2023-08-05 21:19:04 +01:00
}
do_install() {
local _srcdir="${GOPATH}/bin"
if [ "$CROSS_BUILD" ]; then
_srcdir="${_srcdir}/linux_${GOARCH}"
fi
vbin "${_srcdir}/generator" booster
vinstall "${_srcdir}/init" 755 usr/lib/booster
vman docs/manpage.1 booster.1
2023-10-29 15:34:13 +00:00
vconf booster.yaml
2023-08-05 21:19:04 +01:00
vinstall ${FILESDIR}/kernel-hook-postinst 755 usr/libexec/booster
vinstall ${FILESDIR}/kernel-hook-postrm 755 usr/libexec/booster
vcompletion contrib/completion/bash bash booster
vlicense LICENSE
2023-10-29 15:34:13 +00:00
2023-08-05 21:19:04 +01:00
}