summaryrefslogtreecommitdiff
path: root/extra/refind-efi
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-18 03:31:52 -0700
committerroot <root@rshg054.dnsready.net>2013-07-18 03:31:52 -0700
commite445a313723389ba9ee1fded025c567dae5b21ea (patch)
treee1b6d772c33aa3fcfdec738b8fe9c3987d7c8bd6 /extra/refind-efi
parent990adc96a030cc674c24d37042cc61bb3abc01cb (diff)
Thu Jul 18 03:31:52 PDT 2013
Diffstat (limited to 'extra/refind-efi')
-rw-r--r--extra/refind-efi/PKGBUILD45
-rw-r--r--extra/refind-efi/refind-efi.install7
2 files changed, 33 insertions, 19 deletions
diff --git a/extra/refind-efi/PKGBUILD b/extra/refind-efi/PKGBUILD
index 0617d298d..21188dee0 100644
--- a/extra/refind-efi/PKGBUILD
+++ b/extra/refind-efi/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 190083 2013-07-14 18:32:34Z tpowa $
+# $Id: PKGBUILD 190825 2013-07-18 07:06:20Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Keshav Padram <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
@@ -17,7 +17,7 @@ _COMPILER="GCC46"
pkgname="refind-efi"
pkgver="0.7.1"
-pkgrel="2"
+pkgrel="3"
pkgdesc="Rod Smith's fork of rEFIt UEFI Boot Manager - built with Tianocore UDK libs"
url="http://www.rodsbooks.com/refind/index.html"
arch=('x86_64' 'i686')
@@ -63,10 +63,10 @@ _setup_env_vars() {
_prepare_tianocore_sources() {
- _setup_env_vars
-
msg "Delete old UDK BUILD dir"
rm -rf "${_UDK_DIR}/" || true
+
+ msg "Create UDK BUILD dir"
mkdir -p "${_UDK_DIR}/"
for _DIR_ in BaseTools MdePkg MdeModulePkg IntelFrameworkPkg IntelFrameworkModulePkg ; do
@@ -104,10 +104,10 @@ _prepare_tianocore_sources() {
sed "s|TOOL_CHAIN_TAG = MYTOOLS|TOOL_CHAIN_TAG = ${_COMPILER}|g" -i "${EDK_TOOLS_PATH}/Conf/target.template" || true
msg "Fix UDK Target ARCH for rEFInd"
- sed "s|X64|${_TIANO_ARCH}|g" -i "${_UDK_DIR}/Conf/target.txt" || true
- sed "s|IA32|${_TIANO_ARCH}|g" -i "${_UDK_DIR}/Conf/target.txt" || true
+ sed "s|X64|${_TIANO_ARCH}|g" -i "${EDK_TOOLS_PATH}/Conf/target.template" || true
+ sed "s|IA32|${_TIANO_ARCH}|g" -i "${EDK_TOOLS_PATH}/Conf/target.template" || true
- chmod +x "${_UDK_DIR}/BaseTools/BuildEnv"
+ chmod 0755 "${_UDK_DIR}/BaseTools/BuildEnv"
}
@@ -124,6 +124,8 @@ _prepare_refind_sources() {
prepare() {
+ _setup_env_vars
+
msg "Prepare Tianocore Sources"
_prepare_tianocore_sources
@@ -192,17 +194,14 @@ package() {
msg "Install rEFInd helper scripts"
install -d "${pkgdir}/usr/bin/"
- install -D -m0644 "${srcdir}/refind-${pkgver}/install.sh" "${pkgdir}/usr/bin/refind-install"
- install -D -m0644 "${srcdir}/refind-${pkgver}/mkrlconf.sh" "${pkgdir}/usr/bin/refind-mkrlconf"
- install -D -m0644 "${srcdir}/refind-${pkgver}/mvrefind.sh" "${pkgdir}/usr/bin/refind-mvrefind"
+ install -D -m0755 "${srcdir}/refind-${pkgver}/install.sh" "${pkgdir}/usr/bin/refind-install"
+ install -D -m0755 "${srcdir}/refind-${pkgver}/mkrlconf.sh" "${pkgdir}/usr/bin/refind-mkrlconf"
+ install -D -m0755 "${srcdir}/refind-${pkgver}/mvrefind.sh" "${pkgdir}/usr/bin/refind-mvrefind"
install -D -m0755 "${srcdir}/refind-${pkgver}/fonts/mkfont.sh" "${pkgdir}/usr/bin/refind-mkfont"
- sed 's|#!/bin/bash|#!/usr/bin/env bash|g' -i "${pkgdir}/usr/bin"/refind-* || true
-
- msg "Install the rEFInd config file"
- install -d "${pkgdir}/usr/lib/refind/config/"
- install -D -m0644 "${srcdir}/refind-${pkgver}/refind.conf-sample" "${pkgdir}/usr/lib/refind/config/refind.conf"
- install -D -m0644 "${srcdir}/refind_linux.conf" "${pkgdir}/usr/lib/refind/config/refind_linux.conf"
+ msg "Install the rEFInd sample config files"
+ install -D -m0644 "${srcdir}/refind-${pkgver}/refind.conf-sample" "${pkgdir}/usr/lib/refind/refind.conf-sample"
+ install -D -m0644 "${srcdir}/refind_linux.conf" "${pkgdir}/usr/lib/refind/refind_linux.conf-sample"
msg "Install the rEFInd docs"
install -d "${pkgdir}/usr/share/doc/refind/html/"
@@ -234,4 +233,18 @@ package() {
install -d "${pkgdir}/usr/share/licenses/refind/"
install -D -m0644 "${srcdir}/refind-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/refind/LICENSE"
+ msg "Use '#!/usr/bin/env bash' in all scripts"
+ sed 's|#!/bin/bash|#!/usr/bin/env bash|g' -i "${pkgdir}/usr/bin"/refind-* || true
+
+ msg "Point refind dir paths to /usr/lib/refind/ in refind-install script"
+ sed 's|^ThisDir=.*|ThisDir="/usr/lib/refind/"|g' -i "${pkgdir}/usr/bin/refind-install"
+ sed 's|^RefindDir=.*|RefindDir="/usr/lib/refind/"|g' -i "${pkgdir}/usr/bin/refind-install"
+ sed 's|^ThisScript=.*|ThisScript="/usr/bin/refind-install"|g' -i "${pkgdir}/usr/bin/refind-install"
+
+ msg "Setup SYMLINKS to refind dirs for the sake of refind-install script"
+ ln -s "/usr/share/refind/fonts" "${pkgdir}/usr/lib/refind/fonts"
+ ln -s "/usr/share/refind/icons" "${pkgdir}/usr/lib/refind/icons"
+ ln -s "/usr/share/refind/keys" "${pkgdir}/usr/lib/refind/keys"
+ ln -s "/usr/share/doc/refind" "${pkgdir}/usr/lib/refind/docs"
+
}
diff --git a/extra/refind-efi/refind-efi.install b/extra/refind-efi/refind-efi.install
index 51ac087fe..011552bcd 100644
--- a/extra/refind-efi/refind-efi.install
+++ b/extra/refind-efi/refind-efi.install
@@ -2,15 +2,16 @@ post_install() {
cat << EOF
-rEFInd UEFI applications have been installed at /usr/lib/refind/refind_*.efi
+rEFInd UEFI application has been installed at /usr/lib/refind/refind_*.efi
Other UEFI applications have been installed at /usr/lib/refind/tools_*/
UEFI drivers have deen installed at /usr/lib/refind/drivers_*/
Copy the efi application (according to your UEFI ARCH)
-and /usr/lib/refind/config/refind.conf to a sub-directory of <EFISYS>/EFI/
-and add an entry to firmware boot menu using efibootmgr or mactel-boot (for Macs)
+and /usr/lib/refind/refind.conf-sample to a sub-directory of <EFISYS>/EFI/
+as refind.conf and add an entry to firmware boot menu using efibootmgr
+or mactel-boot (for Macs)
rEFInd Icons have been installed at /usr/share/refind/icons/
rEFInd Fonts have been installed at /usr/share/refind/fonts/