mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
update kactivities to pacman 4.1
This commit is contained in:
parent
a6022ed36e
commit
1f4d88e570
1 changed files with 7 additions and 24 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue