desktop/cinstall/PKGBUILD

58 lines
1.6 KiB
Bash
Raw Normal View History

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-06-19 05:33:03 +08:00
pkgver=20100618
pkgrel=5
2010-06-19 03:00:56 +08:00
depends=('kdelibs' 'qt' )
2010-06-19 05:33:03 +08:00
pkgdesc="Drake Justice's Bundle Creator/Launcher and Package-Manager"
2010-06-19 03:00:56 +08:00
arch=("i686" "x86_64")
license=('GPL')
#install=$pkgname.install
url="http://chakra-project.org/"
optdepends=('akabei: for akabei support'
'pacman: for pacman support')
2010-06-19 05:33:03 +08:00
source=(CInstall.desktop)
md5sums=(b5577b88ef826b00156d7e8b21d9f79e)
_gitroot="git://gitorious.org/cinstall/cinstall.git"
_gitname="cinstall"
2010-06-19 03:00:56 +08:00
build() {
2010-06-19 05:33:03 +08:00
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 ../${pkgname} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make || return 1
make DESTDIR=${pkgdir} install || return 1
mkdir -p "$pkgdir/usr/share/applications/kde4"
cp -v "${srcdir}/CInstall.desktop" "$pkgdir/usr/share/applications/kde4/CInstall.desktop"
2010-06-19 03:00:56 +08:00
}