summaryrefslogtreecommitdiff
path: root/core/efibootmgr/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/efibootmgr/PKGBUILD')
-rwxr-xr-xcore/efibootmgr/PKGBUILD48
1 files changed, 22 insertions, 26 deletions
diff --git a/core/efibootmgr/PKGBUILD b/core/efibootmgr/PKGBUILD
index d1552f30e..4b99ae7f8 100755
--- a/core/efibootmgr/PKGBUILD
+++ b/core/efibootmgr/PKGBUILD
@@ -1,43 +1,39 @@
-# $Id: PKGBUILD 206469 2014-02-27 10:35:34Z tpowa $
+# $Id: PKGBUILD 211195 2014-04-18 10:46:54Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Murtuza Akhtari <inxsible at gmail dot com>
# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
-_pkgname="efibootmgr"
-pkgname="${_pkgname}"
-
-_gitroot="https://github.com/vathpela/efibootmgr.git"
-_gitname="${_pkgname}"
-_gitbranch="master"
-
-_GIT_COMMIT="f4e29e4200ed1e866c9cf98d2ebdcb8ac2e9826c"
-
-pkgver=0.6.1.29.gf4e29e4
-pkgrel=1
+pkgname="efibootmgr"
pkgdesc="Tool to modify UEFI Firmware Boot Manager Variables"
+pkgver="0.7.0"
+pkgrel="1"
arch=('x86_64' 'i686')
url="https://github.com/vathpela/efibootmgr"
license=('GPL2')
makedepends=('git')
depends=('pciutils' 'efivar' 'zlib')
-conflicts=("${_pkgname}-pjones")
-provides=("${_pkgname}-pjones=${pkgver}")
-options=('strip' 'zipman' '!emptydirs')
+options=('strip' 'zipman' 'docs' '!emptydirs')
-source=("${_gitname}::git+${_gitroot}#commit=${_GIT_COMMIT}")
+source=("efibootmgr::git+https://github.com/vathpela/efibootmgr.git#tag=efibootmgr-${pkgver}")
sha1sums=('SKIP')
-pkgver() {
- cd "${srcdir}/${_gitname}/"
- echo "$(git describe --tags)" | sed -e 's|-|\.|g'
+_pkgver() {
+ cd "${srcdir}/efibootmgr/"
+ echo "$(git describe --tags)" | sed -e 's|efibootmgr-||g' -e 's|-|\.|g'
}
-build() {
+prepare() {
+
+ cd "${srcdir}/efibootmgr/"
- rm -rf "${srcdir}/${_gitname}_build/" || true
- cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
+ git clean -x -d -f
+ echo
+
+}
+
+build() {
- cd "${srcdir}/${_gitname}_build/"
+ cd "${srcdir}/efibootmgr/"
make EXTRA_CFLAGS="-Os"
echo
@@ -46,12 +42,12 @@ build() {
package() {
- cd "${srcdir}/${_gitname}_build/"
+ cd "${srcdir}/efibootmgr/"
install -d "${pkgdir}/usr/bin/"
- install -D -m0755 "${srcdir}/${_gitname}_build/src/efibootmgr/efibootmgr" "${pkgdir}/usr/bin/efibootmgr"
+ install -D -m0755 "${srcdir}/efibootmgr/src/efibootmgr/efibootmgr" "${pkgdir}/usr/bin/efibootmgr"
install -d "${pkgdir}/usr/share/man/man8/"
- install -D -m0644 "${srcdir}/${_gitname}_build/src/man/man8/efibootmgr.8" "${pkgdir}/usr/share/man/man8/efibootmgr.8"
+ install -D -m0644 "${srcdir}/efibootmgr/src/man/man8/efibootmgr.8" "${pkgdir}/usr/share/man/man8/efibootmgr.8"
}