diff options
author | James Meyer <james.meyer@operamail.com> | 2014-02-17 00:04:16 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2014-02-19 19:03:05 (GMT) |
commit | 24ed89c67ae43e56a5ce8c42557dc47f768efa4d (patch) | |
tree | 9c8a519c44e862136b64a522fcc9ae36871aae0e /abs/extra/efivar/PKGBUILD | |
parent | 96a811dd401826531a28d28262fc48d5638478d0 (diff) | |
download | linhes_pkgbuild-24ed89c67ae43e56a5ce8c42557dc47f768efa4d.zip linhes_pkgbuild-24ed89c67ae43e56a5ce8c42557dc47f768efa4d.tar.gz linhes_pkgbuild-24ed89c67ae43e56a5ce8c42557dc47f768efa4d.tar.bz2 |
efivar: first include
update binary path to /usr/bin
refs #961
Diffstat (limited to 'abs/extra/efivar/PKGBUILD')
-rw-r--r-- | abs/extra/efivar/PKGBUILD | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/abs/extra/efivar/PKGBUILD b/abs/extra/efivar/PKGBUILD new file mode 100644 index 0000000..e8d8995 --- /dev/null +++ b/abs/extra/efivar/PKGBUILD @@ -0,0 +1,65 @@ +# $Id: PKGBUILD 199468 2013-11-13 11:07:43Z tpowa $ +# Maintainer : Tobias Powalowski <tpowa@archlinux.org> +# Contributor : Keshav Padram <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)> + +_gitroot="git://github.com/vathpela/efivar.git" +_gitname="efivar" +_gitbranch="master" + +_pkgname="efivar" +pkgname="${_pkgname}" + +pkgdesc="Library to manipulate EFI variables" +pkgver=0.7 +pkgrel=1 +arch=('x86_64' 'i686') +url="https://github.com/vathpela/efivar" +license=('LGPL2.1') +makedepends=('git') +depends=('popt') +conflicts=('libefivar') +provides=('libefivar') +options=('zipman' 'docs' '!makeflags') + +source=("${_gitname}::git+${_gitroot}#tag=${pkgver}") +sha1sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_gitname}/" + echo "$(git describe --tags)" | sed 's|-|\.|g' +} + +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 CFLAGS + unset CPPFLAGS + unset CXXFLAGS + unset LDFLAGS + unset MAKEFLAGS + + sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i "${srcdir}/${_gitname}_build/src/test/Makefile" || true + + make libdir="/usr/lib/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" V=1 -j1 + echo + +} + +package() { + + cd "${srcdir}/${_gitname}_build/" + + 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}/${_gitname}_build/src/test/tester" "${pkgdir}/usr/bin/efivar-tester" + +} |