blob: c6115d0a0b77336595e2bee35250b638ba0c4b3f (
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
|
# Maintainer : Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
_gitroot="http://git.code.sf.net/p/gnu-efi/code"
_gitname="gnu-efi"
_gitbranch="master"
_src_rootdir="${_gitname}-3.0"
pkgname="gnu-efi-libs-git"
pkgver=0.41.8921ba2
pkgrel=1
pkgdesc="Library for building UEFI Applications using GNU toolchain - Sourceforge GIT Version"
url="http://sourceforge.net/projects/gnu-efi/"
license=('GPL')
arch=('x86_64' 'i686')
makedepends=('git' 'pciutils')
options=('staticlibs' '!strip' '!makeflags')
conflicts=('gnu-efi-libs')
provides=('gnu-efi-libs')
source=("${_gitname}::git+${_gitroot}#branch=${_gitbranch}"
'gnu-efi-3.0v-revert-makefile-commit.patch')
sha1sums=('SKIP'
'db411a1f2f545924dc59f8a0c2331acfcb10bb54')
pkgver() {
cd "${srcdir}/${_gitname}/"
echo "0.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" | sed -e 's|-|.|g'
}
[[ "${CARCH}" == "x86_64" ]] && _EFI_ARCH="x86_64"
[[ "${CARCH}" == "i686" ]] && _EFI_ARCH="ia32"
build() {
rm -rf "${srcdir}/${_gitname}_build/" || true
cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
cd "${srcdir}/${_gitname}_build/"
git clean -x -d -f
echo
# git revert --no-commit 06744d69273de4945cf0ffcaa4a6abf7cec707b6
patch -Np1 -i "${srcdir}/gnu-efi-3.0v-revert-makefile-commit.patch" || true
echo
## Unset all compiler FLAGS
unset CFLAGS
unset CPPFLAGS
unset CXXFLAGS
unset LDFLAGS
unset MAKEFLAGS
cd "${srcdir}/${_gitname}_build/${_src_rootdir}/"
make -j1
echo
make -j1 -C apps all
echo
}
package() {
cd "${srcdir}/${_gitname}_build/${_src_rootdir}/"
make INSTALLROOT="${pkgdir}" PREFIX="/usr" LIBDIR="/usr/lib" install
echo
install -d "${pkgdir}/usr/share/gnu-efi/apps/${_EFI_ARCH}/"
install -D -m0644 "${srcdir}/${_gitname}_build/${_src_rootdir}/apps"/*.efi "${pkgdir}/usr/share/gnu-efi/apps/${_EFI_ARCH}/"
}
|