Update package version to 2.14
This commit is contained in:
@@ -9,7 +9,14 @@ prepare() {
|
||||
gunzip -c unifont.bdf.gz > "$BPM_SOURCE"/unifont.bdf
|
||||
|
||||
cd "$BPM_SOURCE"
|
||||
# Allow detection of non-versioned initramfs image file names
|
||||
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
|
||||
@@ -17,17 +24,12 @@ prepare() {
|
||||
build() {
|
||||
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 \
|
||||
--sysconfdir=/etc \
|
||||
--disable-efiemu \
|
||||
--disable-werror \
|
||||
--enable-boot-time \
|
||||
--enable-cache-stats \
|
||||
--with-platform=efi \
|
||||
--target=x86_64
|
||||
make
|
||||
@@ -36,15 +38,11 @@ build() {
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
make DESTDIR="$BPM_OUTPUT" bashcompletiondir=/usr/share/bash-completion/completions install
|
||||
|
||||
#Install font data files
|
||||
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 -Dm644 "$BPM_WORKDIR"/grub.default "$BPM_OUTPUT"/etc/default/grub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user