diff --git a/aur/kactivities-git/PKGBUILD b/aur/kactivities-git/PKGBUILD index be84f02d6..68315efbf 100644 --- a/aur/kactivities-git/PKGBUILD +++ b/aur/kactivities-git/PKGBUILD @@ -12,36 +12,19 @@ depends=('kdelibs') makedepends=('cmake' 'git' 'automoc4') #conflicts=('kactivities' 'kdebase-runtime') #provides=('kactivities') - -_gitroot="git://anongit.kde.org/kactivities" +source=("kactivities::git://anongit.kde.org/kactivities") +md5sums=('SKIP') _gitname="kactivities" build() { - cd $srcdir - msg "Connecting to the GIT server...." - - if [[ -d $srcdir/$_gitname ]] ; then - cd $_gitname - git pull origin - msg "The local files are updated." - else - git clone --depth 1 $_gitroot - fi - - msg "GIT checkout done" - msg "Starting make..." - if [[ -d ${srcdir}/build ]]; then - msg "Cleaning the previous build directory..." - rm -rf ${srcdir}/build - fi - mkdir $srcdir/build - cd $srcdir/build - cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \ + mkdir "$srcdir/build" + cd "$srcdir/build" + cmake "$srcdir/$_gitname" -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { - cd ${srcdir}/build - make DESTDIR=${pkgdir} install + cd "${srcdir}/build" + make DESTDIR="${pkgdir}" install }