[arch-commits] Commit in gummiboot-efi/repos (4 files)
tpowa at nymeria.archlinux.org
tpowa at nymeria.archlinux.org
Wed Jan 23 11:42:12 UTC 2013
Date: Wednesday, January 23, 2013 @ 12:42:12
Author: tpowa
Revision: 175893
archrelease: copy trunk to testing-any
Added:
gummiboot-efi/repos/testing-any/
gummiboot-efi/repos/testing-any/PKGBUILD
(from rev 175892, gummiboot-efi/trunk/PKGBUILD)
gummiboot-efi/repos/testing-any/arch.conf
(from rev 175892, gummiboot-efi/trunk/arch.conf)
gummiboot-efi/repos/testing-any/loader.conf
(from rev 175892, gummiboot-efi/trunk/loader.conf)
-------------+
PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
arch.conf | 7 ++++++
loader.conf | 2 +
3 files changed, 68 insertions(+)
Copied: gummiboot-efi/repos/testing-any/PKGBUILD (from rev 175892, gummiboot-efi/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2013-01-23 11:42:12 UTC (rev 175893)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Maintainer: Keshav P R <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+# Contributor: Mantas Mikulėnas <grawity at gmail.com>
+
+pkgname="gummiboot-efi"
+pkgver="15"
+pkgrel="2"
+pkgdesc="Simple text-mode UEFI Boot Manager"
+url="http://freedesktop.org/wiki/Software/gummiboot"
+arch=('any')
+license=('GPL2')
+makedepends=('gnu-efi-libs')
+depends=('dosfstools' 'efibootmgr')
+optdepends=('mactel-boot: For bless command in Apple Mac systems')
+conflicts=('gummiboot-efi-x86_64' 'gummiboot-efi-i386')
+provides=('gummiboot-efi-x86_64' 'gummiboot-efi-i386')
+replaces=('gummiboot-efi-x86_64' 'gummiboot-efi-i386')
+options=('!strip')
+source=("ftp://ftp.archlinux.org/other/gummiboot-efi/gummiboot-${pkgver}.zip"
+ 'loader.conf'
+ 'arch.conf')
+
+build() {
+ if [[ "${CARCH}" != "x86_64" ]]; then
+ msg "gummiboot-efi can be built only in an x86_64 system. Exiting."
+ exit 1
+ fi
+
+ ## Fix Makefiles to enable compile for both x86_64 and i386 UEFI
+ sed 's|ARCH=|ARCH?=|g' -i "${srcdir}/gummiboot-${pkgver}/Makefile"
+ sed 's|LIBDIR=|LIBDIR?=|g' -i "${srcdir}/gummiboot-${pkgver}/Makefile"
+ sed 's|CFLAGS =|CFLAGS +=|g' -i "${srcdir}/gummiboot-${pkgver}/Makefile"
+
+ ## Compile gummiboot for x86_64 UEFI
+ cp -r "${srcdir}/gummiboot-${pkgver}" "${srcdir}/gummiboot-${pkgver}-x86_64"
+ cd "${srcdir}/gummiboot-${pkgver}-x86_64/"
+ CFLAGS="-m64" ARCH="x86_64" LIBDIR="/usr/lib" make
+
+ ## Compile gummiboot for i386 aka IA32 UEFI
+ cp -r "${srcdir}/gummiboot-${pkgver}" "${srcdir}/gummiboot-${pkgver}-i386"
+ cd "${srcdir}/gummiboot-${pkgver}-i386/"
+ CFLAGS="-m32" ARCH="ia32" LIBDIR="/usr/lib32" make
+}
+
+package() {
+ install -d "${pkgdir}/usr/lib/gummiboot/loader/entries/"
+
+ ## Install gummiboot UEFI applications
+ install -D -m0644 "${srcdir}/gummiboot-${pkgver}-x86_64/gummiboot.efi" "${pkgdir}/usr/lib/gummiboot/gummibootx64.efi"
+ install -D -m0644 "${srcdir}/gummiboot-${pkgver}-i386/gummiboot.efi" "${pkgdir}/usr/lib/gummiboot/gummibootia32.efi"
+
+ ## Install gummiboot example configuration files
+ install -D -m0644 "${srcdir}/loader.conf" "${pkgdir}/usr/lib/gummiboot/loader/loader.conf"
+ install -D -m0644 "${srcdir}/arch.conf" "${pkgdir}/usr/lib/gummiboot/loader/entries/arch.conf"
+}
+md5sums=('0b6669f7f3fa39b7e093c86f4745d31a'
+ '6ea803e5179d623716e3be0b636de658'
+ '0229e197d5beb226aa93efcf5dbacd41')
Copied: gummiboot-efi/repos/testing-any/arch.conf (from rev 175892, gummiboot-efi/trunk/arch.conf)
===================================================================
--- testing-any/arch.conf (rev 0)
+++ testing-any/arch.conf 2013-01-23 11:42:12 UTC (rev 175893)
@@ -0,0 +1,7 @@
+## This is just an exmaple config file.
+## Please edit the paths and kernel parameters according to your system.
+
+title Arch Linux
+linux /vmlinuz-linux
+initrd /initramfs-linux.img
+options root=PARTUUID=XXXX rootfstype=XXXX ro
Copied: gummiboot-efi/repos/testing-any/loader.conf (from rev 175892, gummiboot-efi/trunk/loader.conf)
===================================================================
--- testing-any/loader.conf (rev 0)
+++ testing-any/loader.conf 2013-01-23 11:42:12 UTC (rev 175893)
@@ -0,0 +1,2 @@
+timeout 10
+default arch
More information about the arch-commits
mailing list