51 lines
2.3 KiB
Bash
51 lines
2.3 KiB
Bash
# Maintainer: Valeria Fadeeva <valeria@fadeeva.me>
|
|
|
|
pkgname="melawy-refind-menu-generator"
|
|
pkgver=1.7
|
|
pkgrel=1
|
|
pkgdesc="Menu generator for rEFInd loader for kernels in /ESP_PATH/EFI/Linux for Arch Linux"
|
|
url="https://github.com/Valeria-Fadeeva/melawy-refind-menu-generator"
|
|
arch=("any")
|
|
license=("AGPL3")
|
|
depends=("refind")
|
|
optdepends=()
|
|
makedepends=()
|
|
backup=()
|
|
provides=("dracut-hook")
|
|
conflicts=()
|
|
source=("10-refind-menu-pre-install.hook"
|
|
"60-refind-menu-remove.hook"
|
|
"90-refind-menu-install.hook"
|
|
"menu-end.txt"
|
|
"menu-template.txt"
|
|
"menu-template-vmlinuz-first.txt"
|
|
"refind-menu-generator")
|
|
sha256sums=("dc46d6f2030d81a4e5034c1ed84424ce6c4844d933d60eadfacda1e45f17d3cd"
|
|
"a27533ae3b81575c5497f18fdd28c4c908c5aff3da6af78095f65d5d350e4331"
|
|
"15152ac9be0ab0c42d343e5f86b2561232e05df2a7bc0cf01bd799494c0ba962"
|
|
"e1d51fe5b37e42296dc6357fca48f0b68090ffdb1ec0ba2057320ad50e3e9e25"
|
|
"a7381e88f569160a29d756a7bab2dcde4cc1f1e6d3d6b0c78535b24936989be8"
|
|
"8703c455516a95a87ff18e1c43ce98d2a1f74fddebfc9c091c75465e3ca185e9"
|
|
"8e91d5cf0d5bbed8d791acf4485d5c9e4250c8ed3bb13cc6ec1e51edf6ebd5ba")
|
|
|
|
# pkgver() {
|
|
# cd "$srcdir/$_gitname"
|
|
# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
# }
|
|
|
|
pkgver() {
|
|
cd "$srcdir/$_gitname"
|
|
printf "1.%s" "$(git rev-list --count HEAD)"
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "${srcdir}/10-refind-menu-pre-install.hook" "${pkgdir}/usr/share/libalpm/hooks/10-refind-menu-pre-install.hook"
|
|
install -Dm644 "${srcdir}/60-refind-menu-remove.hook" "${pkgdir}/usr/share/libalpm/hooks/60-refind-menu-remove.hook"
|
|
install -Dm644 "${srcdir}/90-refind-menu-install.hook" "${pkgdir}/usr/share/libalpm/hooks/90-refind-menu-install.hook"
|
|
install -dm755 "${pkgdir}/etc/refind-menu-generator"
|
|
install -Dm644 "${srcdir}/menu-end.txt" "${pkgdir}/etc/refind-menu-generator/menu-end.txt"
|
|
install -Dm644 "${srcdir}/menu-template.txt" "${pkgdir}/etc/refind-menu-generator/menu-template.txt"
|
|
install -Dm644 "${srcdir}/menu-template.txt" "${pkgdir}/etc/refind-menu-generator/menu-template-vmlinuz-first.txt"
|
|
install -Dm755 "${srcdir}/refind-menu-generator" "${pkgdir}/usr/bin/refind-menu-generator"
|
|
}
|