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') makedepends=('cmake' 'git' 'automoc4')
#conflicts=('kactivities' 'kdebase-runtime') #conflicts=('kactivities' 'kdebase-runtime')
#provides=('kactivities') #provides=('kactivities')
source=("kactivities::git://anongit.kde.org/kactivities")
_gitroot="git://anongit.kde.org/kactivities" md5sums=('SKIP')
_gitname="kactivities" _gitname="kactivities"
build() { build() {
cd $srcdir mkdir "$srcdir/build"
msg "Connecting to the GIT server...." cd "$srcdir/build"
cmake "$srcdir/$_gitname" -DCMAKE_BUILD_TYPE=Release \
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 \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_PREFIX=/usr
make make
} }
package() { package() {
cd ${srcdir}/build cd "${srcdir}/build"
make DESTDIR=${pkgdir} install make DESTDIR="${pkgdir}" install
} }