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')
|
||||
#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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue