diff options
Diffstat (limited to 'core/efivar/PKGBUILD')
-rw-r--r-- | core/efivar/PKGBUILD | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/core/efivar/PKGBUILD b/core/efivar/PKGBUILD index e8d8995d1..82913db7c 100644 --- a/core/efivar/PKGBUILD +++ b/core/efivar/PKGBUILD @@ -1,24 +1,24 @@ -# $Id: PKGBUILD 199468 2013-11-13 11:07:43Z tpowa $ +# $Id: PKGBUILD 206468 2014-02-27 10:35:33Z 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" +# Contributor : Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)> _pkgname="efivar" pkgname="${_pkgname}" +_gitroot="https://github.com/vathpela/efivar.git" +_gitname="${_pkgname}" +_gitbranch="master" + pkgdesc="Library to manipulate EFI variables" pkgver=0.7 -pkgrel=1 +pkgrel=2 arch=('x86_64' 'i686') url="https://github.com/vathpela/efivar" license=('LGPL2.1') makedepends=('git') depends=('popt') conflicts=('libefivar') -provides=('libefivar') +provides=("libefivar=${pkgver}") options=('zipman' 'docs' '!makeflags') source=("${_gitname}::git+${_gitroot}#tag=${pkgver}") @@ -26,18 +26,28 @@ sha1sums=('SKIP') pkgver() { cd "${srcdir}/${_gitname}/" - echo "$(git describe --tags)" | sed 's|-|\.|g' + echo "$(git describe --tags)" | sed -e 's|-|\.|g' } -build() { +prepare() { + + cd "${srcdir}/${_gitname}/" + + git clean -x -d -f + echo rm -rf "${srcdir}/${_gitname}_build/" || true cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build" cd "${srcdir}/${_gitname}_build/" - git clean -x -d -f - echo + sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i "${srcdir}/${_gitname}_build/src/test/Makefile" || true + +} + +build() { + + cd "${srcdir}/${_gitname}_build/" unset CFLAGS unset CPPFLAGS @@ -45,8 +55,6 @@ build() { 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 |