Update package version to 2.14
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: grub
|
name: grub
|
||||||
description: The GRand Unified Bootloader
|
description: The GRand Unified Bootloader
|
||||||
version: "2.12"
|
version: "2.14"
|
||||||
revision: 10
|
revision: 1
|
||||||
url: https://www.gnu.org/software/grub/
|
url: https://www.gnu.org/software/grub/
|
||||||
license: GPL3-or-later
|
license: GPL3-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
@@ -20,6 +20,7 @@ optional_depends:
|
|||||||
- mtools
|
- mtools
|
||||||
- os-prober
|
- os-prober
|
||||||
make_depends:
|
make_depends:
|
||||||
|
- autoconf-archive
|
||||||
- freetype2
|
- freetype2
|
||||||
- fuse3
|
- fuse3
|
||||||
- gzip
|
- gzip
|
||||||
@@ -28,7 +29,7 @@ downloads:
|
|||||||
- url: https://ftpmirror.gnu.org/gnu/grub/grub-${BPM_PKG_VERSION}.tar.xz
|
- url: https://ftpmirror.gnu.org/gnu/grub/grub-${BPM_PKG_VERSION}.tar.xz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
extract_strip_components: 1
|
extract_strip_components: 1
|
||||||
checksum: f3c97391f7c4eaa677a78e090c7e97e6dc47b16f655f04683ebd37bef7fe0faa
|
checksum: bc8d3c73535b8838d8c8e2654d73edc4e6ae8c8acdb45d5df5dc9a1547446d43
|
||||||
- url: https://ftpmirror.gnu.org/gnu/unifont/unifont-16.0.03/unifont-16.0.03.bdf.gz
|
- url: https://ftpmirror.gnu.org/gnu/unifont/unifont-16.0.03/unifont-16.0.03.bdf.gz
|
||||||
filepath: unifont.bdf.gz
|
filepath: unifont.bdf.gz
|
||||||
checksum: 7f3d1664ac1c051f59a1a1360dd654f78d82c246a688c342e863cec7f6ba95d4
|
checksum: 7f3d1664ac1c051f59a1a1360dd654f78d82c246a688c342e863cec7f6ba95d4
|
||||||
|
|||||||
@@ -9,7 +9,14 @@ prepare() {
|
|||||||
gunzip -c unifont.bdf.gz > "$BPM_SOURCE"/unifont.bdf
|
gunzip -c unifont.bdf.gz > "$BPM_SOURCE"/unifont.bdf
|
||||||
|
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
|
# Allow detection of non-versioned initramfs image file names
|
||||||
patch -Np1 -i "$BPM_WORKDIR"/fix-initramfs-detection.patch
|
patch -Np1 -i "$BPM_WORKDIR"/fix-initramfs-detection.patch
|
||||||
|
# Add missing file
|
||||||
|
echo depends bli part_gpt > grub-core/extra_deps.lst
|
||||||
|
# Fix dejavu font directory
|
||||||
|
sed 's|/usr/share/fonts/dejavu|/usr/share/fonts/dejavu /usr/share/fonts/TTF|g' -i "configure.ac"
|
||||||
|
|
||||||
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
@@ -17,17 +24,12 @@ prepare() {
|
|||||||
build() {
|
build() {
|
||||||
unset {C,CPP,CXX,LD}FLAGS
|
unset {C,CPP,CXX,LD}FLAGS
|
||||||
|
|
||||||
# Add missing file
|
|
||||||
echo depends bli part_gpt > grub-core/extra_deps.lst
|
|
||||||
|
|
||||||
# Fix dejavu font directory
|
|
||||||
sed 's|/usr/share/fonts/dejavu|/usr/share/fonts/dejavu /usr/share/fonts/TTF|g' -i "configure.ac"
|
|
||||||
|
|
||||||
autoreconf -fi
|
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--disable-efiemu \
|
--disable-efiemu \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
|
--enable-boot-time \
|
||||||
|
--enable-cache-stats \
|
||||||
--with-platform=efi \
|
--with-platform=efi \
|
||||||
--target=x86_64
|
--target=x86_64
|
||||||
make
|
make
|
||||||
@@ -36,15 +38,11 @@ build() {
|
|||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" bashcompletiondir=/usr/share/bash-completion/completions install
|
||||||
|
|
||||||
#Install font data files
|
#Install font data files
|
||||||
install -Dm644 ascii.h widthspec.h *.pf2 "$BPM_OUTPUT"/usr/share/grub/
|
install -Dm644 ascii.h widthspec.h *.pf2 "$BPM_OUTPUT"/usr/share/grub/
|
||||||
|
|
||||||
# Install bash completions
|
|
||||||
install -dm755 "$BPM_OUTPUT"/usr/share/bash-completion/completions/
|
|
||||||
mv "$BPM_OUTPUT"/etc/bash_completion.d/grub "$BPM_OUTPUT"/usr/share/bash-completion/completions
|
|
||||||
|
|
||||||
# Install grub default file
|
# Install grub default file
|
||||||
install -Dm644 "$BPM_WORKDIR"/grub.default "$BPM_OUTPUT"/etc/default/grub
|
install -Dm644 "$BPM_WORKDIR"/grub.default "$BPM_OUTPUT"/etc/default/grub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user