From ee4ed401fc49ba547b3c51decac2d21096caac1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giuseppe=20Cala=C3=A0?= Date: Mon, 25 Oct 2010 17:52:16 +0000 Subject: [PATCH] Added kmess-stable-git to apps-testing x86_64 --- kmess-stable-git/PKGBUILD | 71 +++++++++++++++++++++++ kmess-stable-git/kmess-stable-git.install | 12 ++++ 2 files changed, 83 insertions(+) create mode 100644 kmess-stable-git/PKGBUILD create mode 100644 kmess-stable-git/kmess-stable-git.install diff --git a/kmess-stable-git/PKGBUILD b/kmess-stable-git/PKGBUILD new file mode 100644 index 000000000..cf04d5375 --- /dev/null +++ b/kmess-stable-git/PKGBUILD @@ -0,0 +1,71 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +# 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 +} diff --git a/kmess-stable-git/kmess-stable-git.install b/kmess-stable-git/kmess-stable-git.install new file mode 100644 index 000000000..45f0c2242 --- /dev/null +++ b/kmess-stable-git/kmess-stable-git.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} +