diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 6 insertions, 30 deletions
@@ -1,5 +1,9 @@ # Maintainer : Keshav Padram <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)> +_gitroot="git://github.com/vathpela/libefivar.git" +_gitname="libefivar" +_gitbranch="master" + _pkgname="libefivar" pkgname="${_pkgname}-git" @@ -14,40 +18,12 @@ license=('GPL2') depends=('glibc') options=('!strip' '!emptydirs' 'zipman' '!libtool' 'docs') -_gitroot="git://github.com/vathpela/libefivar.git" -_gitname="${_pkgname}" -_gitbranch="master" - source=("${_gitname}::git+${_gitroot}#branch=${_gitbranch}") sha1sums=('SKIP') pkgver() { - cd "${_gitname}" - git describe --always | sed 's|-|.|g' -} - -_update_git() { - - cd "${srcdir}/" - - msg "Connecting to GIT server...." - - if [[ -d "${srcdir}/${_gitname}/" ]]; then - cd "${srcdir}/${_gitname}/" - git reset --hard - git fetch - git checkout "${_gitbranch}" - git merge "remotes/origin/${_gitbranch}" - msg "The local GIT repo has been updated." - else - git clone "${_gitroot}" "${_gitname}" - cd "${srcdir}/${_gitname}/" - git checkout "${_gitbranch}" - msg "GIT checkout done or server timeout" - fi - - echo - + cd "${srcdir}/${_gitname}/" + git describe --always | sed 's|-|.|g' } build() { |