blob: 98cd65e8e5f9f61a02f864d0408e8a3db72420c2 (
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
|
# Maintainer : Keshav Padram <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
_gitroot="git://git.code.sf.net/p/gnu-efi/code"
_gitname="gnu-efi"
_gitbranch="master"
_src_rootdir="${_gitname}-3.0"
pkgname="gnu-efi-libs-git"
pkgver=8cb1e87
pkgrel=3
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=('pciutils')
options=('!strip' '!makeflags')
conflicts=('gnu-efi-libs')
provides=('gnu-efi-libs')
source=("${_gitname}::git+${_gitroot}#branch=${_gitbranch}")
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}/"
git describe --always | sed '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
## 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}/"
}
|