desktop/kdeplasma-applets-ccr-plasmoid/PKGBUILD

49 lines
1.1 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
pkgname=kdeplasma-applets-ccr-plasmoid
pkgver=0.2.1
pkgrel=1
depends=('kdebase-workspace')
makedepends=('make' 'cmake' 'automoc4')
pkgdesc="Plasmoid for handling the Chakra Community Repo"
arch=('x86_64')
license=('GPL')
categories=('accessories')
screenshot=('')
url="http://chakra-project.org/"
_gitroot=git://gitorious.org//chakra/ccr-plasmoid.git
_gitname=ccr-plasmoid
_gitsha=5cf14394fe0e8870d51ff46ee6aa52cf2b1314a2
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
git reset --hard ${_gitsha}
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make
}
package() {
cd "$srcdir/$_gitname-build/build"
make DESTDIR="$pkgdir/" install
}