diff options
Diffstat (limited to 'libre/grub2/PKGBUILD')
-rw-r--r-- | libre/grub2/PKGBUILD | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libre/grub2/PKGBUILD b/libre/grub2/PKGBUILD index 5b1769f95..a326fc8eb 100644 --- a/libre/grub2/PKGBUILD +++ b/libre/grub2/PKGBUILD @@ -9,11 +9,12 @@ _grub_ntldr_ver=21 _grub_915_ver=9 pkgname=('grub2-common' 'grub2-bios' 'grub2-efi-i386') +[ "$CARCH" = "mips64el" ] && pkgname=('grub2-common' 'grub2-loongson') pkgbase=grub2 pkgver=2.00rc1 pkgrel=1.1 url="http://www.gnu.org/software/grub/" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('GPL3') epoch="1" makedepends=('rsync' 'xz' 'bdf-unifont' 'python' 'autogen' 'texinfo' @@ -241,3 +242,18 @@ package_grub2-efi-i386() { rm -f "${pkgdir}/usr/lib/grub/i386-efi"/{kernel.exec,gdb_grub,gmodule.pl} || true } + +# Same as -bios but different pkgdesc +package_grub2-loongson() { + pkgdesc="The GNU GRand Unified Bootloader version 2 - Built for Loogson" + depends=(grub2-common=${epoch}:${pkgver}) + replaces=('grub2' 'grub2-libre') + provides=('grub2' 'grub2-libre') + + cd ${srcdir}/grub2_bios-${pkgver} + make DESTDIR=${pkgdir} install + + ## remove non platform-specific files + rm -rf ${pkgdir}/{boot,bin,sbin,etc,usr/share} + rm ${pkgdir}/usr/lib/grub/{grub-mkconfig_lib,update-grub_lib} +} |