2010-06-19 03:00:56 +08:00
|
|
|
#
|
|
|
|
# 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>
|
|
|
|
# (c) 2010 Drake Justice
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
pkgname=cinstall
|
2010-11-06 03:31:56 +08:00
|
|
|
pkgver=20101105
|
2010-08-11 18:29:48 +08:00
|
|
|
pkgrel=1
|
2010-09-21 04:05:55 +08:00
|
|
|
depends=('kdelibs' 'qt' 'squashfs-tools' 'xz-utils' 'fakechroot' 'unionfs-fuse')
|
2010-07-18 09:20:38 +08:00
|
|
|
pkgdesc="Bundle Creator/Launcher and Package-Manager"
|
2010-06-19 03:00:56 +08:00
|
|
|
arch=("i686" "x86_64")
|
|
|
|
license=('GPL')
|
2010-06-22 21:15:23 +08:00
|
|
|
install=$pkgname.install
|
2010-06-19 03:00:56 +08:00
|
|
|
url="http://chakra-project.org/"
|
|
|
|
optdepends=('akabei: for akabei support'
|
|
|
|
'pacman: for pacman support')
|
|
|
|
|
2010-09-07 06:07:25 +08:00
|
|
|
_gitroot="git://gitorious.org/cinstall/cinstall.git"
|
|
|
|
_gitname="cinstall"
|
2010-06-19 03:00:56 +08:00
|
|
|
|
|
|
|
build() {
|
2010-09-07 06:07:25 +08:00
|
|
|
cd "${srcdir}"
|
|
|
|
msg "Connecting to GIT server...."
|
2010-06-19 05:33:03 +08:00
|
|
|
|
2010-09-07 06:07:25 +08:00
|
|
|
if [ -d $_gitname ] ; then
|
|
|
|
cd $_gitname && git pull
|
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
|
|
|
git clone $_gitroot
|
|
|
|
cd $_gitname && git checkout
|
|
|
|
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 ../$_gitname-build \
|
2010-06-19 05:33:03 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make || return 1
|
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
2010-06-19 03:00:56 +08:00
|
|
|
}
|
|
|
|
|