summaryrefslogtreecommitdiff
path: root/libre/grub
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@parabola.nu>2024-02-21 11:03:05 -0700
committerLuke T. Shumaker <lukeshu@parabola.nu>2024-02-21 19:50:12 -0700
commit7ad26740f920888c3627e519e15e778bd6396f83 (patch)
tree1e14cce19695cf4e9bd818c39723c6dd7b75e493 /libre/grub
parent536a4f7d41af8ed6ad8059635eff274e3e052b6e (diff)
libre/grub: Add localizations from ./linguas.sh
Diffstat (limited to 'libre/grub')
-rw-r--r--libre/grub/PKGBUILD25
1 files changed, 19 insertions, 6 deletions
diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD
index d47c586b8..cf0201333 100644
--- a/libre/grub/PKGBUILD
+++ b/libre/grub/PKGBUILD
@@ -95,7 +95,7 @@ _pkgver=2.12
_unifont_ver='15.1.04'
pkgver=${_pkgver/-/}
pkgrel=1
-pkgrel+=.parabola1
+pkgrel+=.parabola2
url='https://www.gnu.org/software/grub/'
arch=('x86_64')
arch+=('i686')
@@ -143,9 +143,14 @@ validpgpkeys=('E53D497F3FA42AD8C9B4D1E835A93B74E82E4209' # Vladimir 'phcoder' S
'BE5C23209ACDDACEB20DB0A28C8189F1988C2166' # Daniel Kiper <dkiper@net-space.pl>
'95D2E9AB8740D8046387FD151A09227B1F435A33') # Paul Hardy <unifoundry@unifoundry.com>
+# For grub-linguas-*.tar
+_linguas_ver=20231125 # Get this date from the output of `rsync translationproject.org::tp/latest/grub`
+validpgpkeys+=('99195DD3BB6FE10A2F36ED8445698744D4FFBFC9') # Luke Shumaker
+
source=("git+https://git.savannah.gnu.org/git/grub.git#tag=${_tag}?signed"
'git+https://git.savannah.gnu.org/git/gnulib.git'
"https://ftp.gnu.org/gnu/unifont/unifont-${_unifont_ver}/unifont-${_unifont_ver}.bdf.gz"{,.sig}
+ "https://repo.parabola.nu/other/grub/grub-linguas-${_linguas_ver}.tar.xz"{,.sig}
'0001-00_header-add-GRUB_COLOR_-variables.patch'
'0002-10_linux-20_linux_xen-detect-parabola-initramfs.patch'
'0003-support-dropins-for-default-configuration.patch'
@@ -163,6 +168,8 @@ sha256sums=('SKIP'
'SKIP'
'88e00954b10528407e62e97ce6eaa88c847ebfd9a464cafde6bf55c7e4eeed54'
'SKIP'
+ '0d6cde9ef6e24a5c4f22cc731f64345e2e4cdc363dc00cef20e162a7946faaaa'
+ 'SKIP'
'c25a09792ad97ca93ff385f1821b8c071b28d0ee86c1c4af9365cc00dc5b2b12'
'1dd3df0838f9aa737beb0298b855bc93b07d8f3926460ccb8b8f30f5fece3abf'
'a096658d0f48a8b8d0d526d679c2106d0a5bf2a5afb6f2ca7e37f1f2ac33fd85'
@@ -204,6 +211,16 @@ _configure_options=(
--disable-werror
)
+mksource=("${source[0]}")
+mksha256sums=('SKIP')
+mksource() {
+ cd "$srcdir/grub"
+ ./linguas.sh # rsync from translationproject.org::tp/latest/grub
+ git ls-files -z | xargs -0 git rm -f --
+ rm -rf .git
+ export SOURCE_DATE_EPOCH="$(stat --format='%Y' po/*.po|sort|tail -n1)"
+}
+
prepare() {
cd "${srcdir}/grub/"
@@ -242,11 +259,7 @@ prepare() {
# linguas.sh rsync's from translationproject.org; this will
# fail with libremakepkg because networking is turned off.
- # And we can't "optimistically" run it, because it doesn't do
- # error-handling and will delete files that we need. If
- # pulling in updated translations is important, then it needs
- # to be done prior to prepare().
- #
+ # Instead, we do this in mksource().
#echo "Pull in latest language files..."
#./linguas.sh