blob: 920e811c3a20dcd65351c71f3cf3929d41371b74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
# Maintainer: Laurent Tréguier <laurent@treguier.org>
_USE_GNU_EFI="1"
#######
[[ "${CARCH}" == "x86_64" ]] && _TIANO_S_ARCH="x64"
[[ "${CARCH}" == "i686" ]] && _TIANO_S_ARCH="ia32"
#######
pkgname="refind-efi-bin"
pkgver="0.13.2"
pkgrel="2"
pkgdesc="Rod Smith's fork of rEFIt UEFI Boot Manager - Precompiled binary"
url="http://www.rodsbooks.com/refind/index.html"
arch=('x86_64' 'i686')
license=('GPL3' 'custom')
depends=('bash' 'dosfstools' 'efibootmgr')
optdepends=('mactel-boot: For bless command in Apple Mac systems'
'imagemagick: For refind-mkfont script'
'python: For refind-mkdefault script')
makedepends=()
provides=('refind' 'refind-efi')
conflicts=('refind' 'refind-efi')
options=()
install="${pkgname}.install"
source=('refind_linux.conf')
md5sums=('12ce3e22a216e7b25c253478a34713b4'
'8482e9915b6b6ab963a41fcc63ad3b65')
if [[ "${_USE_GNU_EFI}" == "1" ]]; then
pkgdesc="${pkgdesc} - Built with GNU-EFI libs"
source+=("https://downloads.sourceforge.net/project/refind/${pkgver}/refind-bin-gnuefi-${pkgver}.zip")
else
pkgdesc="${pkgdesc} - Built with TianoCore UDK libs"
source+=("https://downloads.sourceforge.net/project/refind/${pkgver}/refind-bin-${pkgver}.zip")
fi
package() {
msg "Install the rEFInd UEFI application"
install -d "${pkgdir}/usr/share/refind/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/refind/refind_${_TIANO_S_ARCH}.efi" "${pkgdir}/usr/share/refind/refind_${_TIANO_S_ARCH}.efi"
msg "Install UEFI drivers built from rEFInd"
install -d "${pkgdir}/usr/share/refind/drivers_${_TIANO_S_ARCH}/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/refind/drivers_${_TIANO_S_ARCH}"/*.efi "${pkgdir}/usr/share/refind/drivers_${_TIANO_S_ARCH}/"
msg "Install UEFI applications built from rEFInd"
install -d "${pkgdir}/usr/share/refind/tools_${_TIANO_S_ARCH}"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/refind/tools_${_TIANO_S_ARCH}"/*.efi "${pkgdir}/usr/share/refind/tools_${_TIANO_S_ARCH}/"
msg "Install rEFInd helper scripts"
install -d "${pkgdir}/usr/bin/"
install -D -m0755 "${srcdir}/refind-bin-${pkgver}/refind-install" "${pkgdir}/usr/bin/refind-install"
install -D -m0755 "${srcdir}/refind-bin-${pkgver}/refind-mkdefault" "${pkgdir}/usr/bin/refind-mkdefault"
install -D -m0755 "${srcdir}/refind-bin-${pkgver}/mkrlconf" "${pkgdir}/usr/bin/refind-mkrlconf"
install -D -m0755 "${srcdir}/refind-bin-${pkgver}/mvrefind" "${pkgdir}/usr/bin/refind-mvrefind"
install -D -m0755 "${srcdir}/refind-bin-${pkgver}/fonts/mkfont.sh" "${pkgdir}/usr/bin/refind-mkfont"
msg "Install the rEFInd sample config files"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/refind/refind.conf-sample" "${pkgdir}/usr/share/refind/refind.conf-sample"
install -D -m0644 "${srcdir}/refind_linux.conf" "${pkgdir}/usr/share/refind/refind_linux.conf-sample"
msg "Install the rEFInd docs"
install -d "${pkgdir}/usr/share/refind/docs/html/"
install -d "${pkgdir}/usr/share/refind/docs/Styles/"
install -d "${pkgdir}/usr/share/man/man8/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/docs/refind"/* "${pkgdir}/usr/share/refind/docs/html/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/docs/Styles"/* "${pkgdir}/usr/share/refind/docs/Styles/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/README.txt" "${pkgdir}/usr/share/refind/docs/README.txt"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/NEWS.txt" "${pkgdir}/usr/share/refind/docs/NEWS.txt"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/docs/man"/*.8 "${pkgdir}/usr/share/man/man8/"
msg "Install the rEFInd fonts"
install -d "${pkgdir}/usr/share/refind/fonts/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/fonts"/* "${pkgdir}/usr/share/refind/fonts/"
rm -f "${pkgdir}/usr/share/refind/fonts/mkfont.sh"
msg "Install the rEFInd icons"
install -d "${pkgdir}/usr/share/refind/icons/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/refind/icons"/*.png "${pkgdir}/usr/share/refind/icons/"
msg "Install the rEFInd images"
install -d "${pkgdir}/usr/share/refind/banners/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/banners"/*.{png,svg} "${pkgdir}/usr/share/refind/banners/"
msg "Install the rEFInd keys"
install -d "${pkgdir}/usr/share/refind/keys/"
install -D -m0644 "${srcdir}/refind-bin-${pkgver}/keys"/* "${pkgdir}/usr/share/refind/keys/"
msg "Install the rEFIt license file, since rEFInd is a fork of rEFIt"
install -d "${pkgdir}/usr/share/licenses/refind/"
install -D -m0644 "${srcdir}/refind-bin-${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"/* || true
msg "Point refind dir paths to /usr/share/refind/ in refind-install script"
sed 's|RefindDir=\"\$ThisDir/refind\"|RefindDir="/usr/share/refind/"|g' -i "${pkgdir}/usr/bin/refind-install"
}
|