diff options
author | Damien Flament | 2016-10-11 13:42:43 +0200 |
---|---|---|
committer | Damien Flament | 2016-10-11 13:42:43 +0200 |
commit | ff606ed81646cc3ebfb04685109810218c9433d3 (patch) | |
tree | 31027326b68baedb083c66fef2fb79135e6f0ee4 | |
parent | b5284b274144cec942f7e3f4610eee39e97e342b (diff) | |
download | aur-ff606ed81646cc3ebfb04685109810218c9433d3.tar.gz |
Updating from Git is not building.
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -33,27 +33,22 @@ pkgver() { git describe --tags | sed -e 's/-/_/g' } -build() { +prepare() { cd "${srcdir}" msg "Connecting to GIT server...." - if [ -d ${_gitname}/.git ] ; then - cd "${_gitname}" - - # Change remote url to anongit - if [ -z $( git branch -v | grep anongit ) ] ; then - git remote set-url origin ${_gitroot} - fi - - git pull origin master + if [[ -d ${_gitname} ]] ; then + cd "${_gitname}" && git pull origin master msg "The local files are updated." else git clone ${_gitroot} ${_gitname} fi msg "GIT checkout done or server timeout" - msg "Starting make..." +} +build() { + msg "Starting make..." cd "${srcdir}/${_gitname}" export CPPFLAGS="-std=c++0x" qmake-qt4 librecad.pro |