add akabeiclient

This commit is contained in:
amnon 2010-07-11 18:21:34 +00:00
parent 220b4ed280
commit c57ca08fbf
2 changed files with 68 additions and 3 deletions

View File

@ -0,0 +1,65 @@
#
# 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=20100711
pkgrel=1
pkgdesc="Akabeis core library"
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 {} +
}

View File

@ -12,10 +12,10 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# package info
#
pkgname=akabeicore
pkgver=20100524
pkgver=20100711
pkgrel=1
pkgdesc="Akabeis core library"
url="http://git.chakra-project.org/chakra/"
url="http://gitorious.org/chakra/akabeicore"
license="GPL"
arch=('i686' 'x86_64')
depends=('sqlite3' 'qt' 'libarchive')
@ -24,7 +24,7 @@ options=('!splithdr' 'splitdbg')
groups=('kde-uninstall')
_gitroot="git://git.chakra-project.org/akabei/akabeicore.git"
_gitroot="git://gitorious.org/chakra/akabeicore.git"
_gitname="akabeicore"
#