core/efibootmgr/PKGBUILD
2015-02-16 12:09:14 +00:00

54 lines
1.1 KiB
Bash
Executable File

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
pkgname="efibootmgr"
pkgdesc="Tool to modify UEFI Firmware Boot Manager Variables"
pkgver="0.11.0"
pkgrel="1"
arch=('x86_64' 'i686')
url="https://github.com/vathpela/efibootmgr"
license=('GPL2')
makedepends=('git')
depends=('pciutils' 'efivar' 'zlib')
options=('strip' 'zipman' 'docs' '!emptydirs')
source=("efibootmgr::git+https://github.com/vathpela/efibootmgr.git#tag=efibootmgr-${pkgver}")
sha1sums=('SKIP')
_pkgver() {
cd "${srcdir}/efibootmgr/"
echo "$(git describe --tags)" | sed -e 's|efibootmgr-||g' -e 's|-|\.|g'
}
prepare() {
cd "${srcdir}/efibootmgr/"
git clean -x -d -f
echo
}
build() {
cd "${srcdir}/efibootmgr/"
make EXTRA_CFLAGS="-Os"
echo
}
package() {
cd "${srcdir}/efibootmgr/"
install -d "${pkgdir}/usr/bin/"
install -D -m0755 "${srcdir}/efibootmgr/src/efibootmgr/efibootmgr" "${pkgdir}/usr/bin/efibootmgr"
install -d "${pkgdir}/usr/share/man/man8/"
install -D -m0644 "${srcdir}/efibootmgr/src/man/man8/efibootmgr.8" "${pkgdir}/usr/share/man/man8/efibootmgr.8"
}