desktop/cinstall-testing/PKGBUILD
Manuel Tortosa cb73f2f9d2 Add rmpkg.sh
2010-07-31 15:33:36 +00:00

55 lines
1.5 KiB
Bash

#
# 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-testing
pkgver=20100731
pkgrel=1
depends=('kdelibs' 'qt' 'squashfs-tools' 'xz-utils' 'unionfs-fuse' 'fakechroot')
pkgdesc="Bundle Creator/Launcher and Package-Manager"
arch=("i686" "x86_64")
license=('GPL')
provides=('cinstall')
conflicts=('cinstall')
install=$pkgname.install
url="http://chakra-project.org/"
optdepends=('akabei: for akabei support'
'pacman: for pacman support')
_gitroot="git://gitorious.org/cinstall/cinstall.git"
_gitname="cinstall"
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
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 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make || return 1
make DESTDIR=${pkgdir} install || return 1
}