blob: 315ebe897e60ff16f56b29e2bb41524d37eb0cf2 (
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
|
# $Id: PKGBUILD 212787 2014-05-15 06:54:54Z tpowa $
# Maintainer : Tobias Powalowski <tpowa@archlinux.org>
# Contributor : Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
pkgname="efivar"
pkgdesc="Tools and library to manipulate EFI variables"
pkgver="0.10"
pkgrel="1"
arch=('x86_64' 'i686')
url="https://github.com/vathpela/efivar"
license=('LGPL2.1')
makedepends=('git')
depends=('popt')
conflicts=('libefivar')
provides=("libefivar=${pkgver}")
options=('strip' 'zipman' 'docs')
source=("efivar::git+https://github.com/vathpela/efivar.git#tag=${pkgver}")
sha1sums=('SKIP')
_pkgver() {
cd "${srcdir}/efivar/"
echo "$(git describe --tags)" | sed -e 's|-|\.|g'
}
prepare() {
cd "${srcdir}/efivar/"
git clean -x -d -f
echo
sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i "${srcdir}/efivar/src/test/Makefile" || true
sed 's|-O0|-Os|g' -i "${srcdir}/efivar/Make.defaults" || true
}
build() {
cd "${srcdir}/efivar/"
make libdir="/usr/lib/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" V=1 -j1
echo
}
package() {
cd "${srcdir}/efivar/"
make -j1 V=1 DESTDIR="${pkgdir}/" libdir="/usr/lib/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" install
echo
install -d "${pkgdir}/usr/bin"
install -D -m0755 "${srcdir}/efivar/src/test/tester" "${pkgdir}/usr/bin/efivar-tester"
}
|