update kactivities to pacman 4.1

This commit is contained in:
Daniel Wallace 2013-04-08 13:23:55 -04:00
parent a6022ed36e
commit 1f4d88e570

View file

@ -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
}