Added kmess-stable-git to apps-testing x86_64

This commit is contained in:
Giuseppe Calaà 2010-10-25 17:52:16 +00:00
parent 708ca3dd57
commit ee4ed401fc
2 changed files with 83 additions and 0 deletions

71
kmess-stable-git/PKGBUILD Normal file
View File

@ -0,0 +1,71 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# from AUR package http://aur.archlinux.org/packages.php?ID=37678
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kmess-stable-git
pkgver=20101025
pkgrel=1
pkgdesc="A full-featured MSN Client for KDE - GIT stable branch version"
arch=('i686' 'x86_64')
url="http://www.kmess.org/"
license=('GPL')
depends=('kdebase-runtime' 'libxss' 'libxslt')
makedepends=('git' 'kdebase' 'cmake' 'automoc4' 'docbook-xml')
optdepends=('cabextract: Winks support'
'flashplugin: Winks support'
'kdebase: Send files from dolphin using kmess')
conflicts=('kmess' 'kmess-git' 'kmess-svn' 'kmess-svn-stable' 'libisf-qt-git')
install=$pkgname.install
_gitroot="git://gitorious.org/kmess/kmess.git"
_gitbranch=kmess-2.0.x
_gitname=kmess-git
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $srcdir/$_gitname ] ; then
cd $srcdir/$_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
rm -rf ${srcdir}/$_gitbranch
cp -r ${srcdir}/$_gitname ${srcdir}/$_gitbranch
msg "Selecting a branch: $_gitbranch"
cd $srcdir/$_gitbranch
git checkout -b $_gitbranch origin/$_gitbranch
git submodule update --init contrib/isf-qt
msg "Starting make..."
rm -rf ${srcdir}/build
mkdir ${srcdir}/build
cd ${srcdir}/build
#
# BUILD HERE
#
cmake ../$_gitbranch \
-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
-DCMAKE_BUILD_TYPE=Release
make || return 1
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install || return 1
}

View File

@ -0,0 +1,12 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}