desktop/tools-pkg-akabeiclient/PKGBUILD
2010-07-28 23:43:25 +00:00

65 lines
1.6 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# 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>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
#
# package info
#
pkgname=akabeiclient
pkgver=20100728
pkgrel=1
pkgdesc="Akabeis Client"
url="http://gitorious.org/chakra/akabeiclient"
license="GPL"
arch=('i686' 'x86_64')
depends=('sqlite3' 'qt' 'libarchive' 'akabeicore')
makedepends=('cmake')
options=('!splithdr' 'splitdbg')
groups=('kde-uninstall')
_gitroot="git://gitorious.org/chakra/akabeiclient.git"
_gitname="akabeiclient"
#
# build function
#
build()
{
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "${srcdir}/$_gitname-build"
cp -r "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
cd "${srcdir}/$_gitname-build/"
cmake . -DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' || return 1
msg "Starting make..."
make || return 1
msg "Make successful, installing..."
make DESTDIR=$startdir/pkg install || return 1
# remove nasty files
find $startdir/pkg/ -name ".git" -type d -exec rm -fr {} +
}