mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
plugrel=1
|
|
noautobuild=1
|
|
|
|
pkgname=kactivities-git
|
|
pkgver=20111216
|
|
pkgrel=1
|
|
pkgdesc='API for using and interacting with Activities as a consumer, application adding information to them or as an activity manager.'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.kde.org'
|
|
license=('LGPL')
|
|
depends=('kdelibs')
|
|
makedepends=('cmake' 'git' 'automoc4')
|
|
#conflicts=('kactivities' 'kdebase-runtime')
|
|
#provides=('kactivities')
|
|
|
|
_gitroot="git://anongit.kde.org/kactivities"
|
|
_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 \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/build
|
|
make DESTDIR=${pkgdir} install
|
|
}
|