mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 12:57:15 +08:00
57 lines
1.2 KiB
Bash
57 lines
1.2 KiB
Bash
|
|
# See http://wiki.archlinux.org/index.php/Arch_CVS_&_SVN_PKGBUILD_guidelines
|
|
# for more information on packaging from GIT sources.
|
|
|
|
# Contributor: Denis Martinez <deuns.martinez@gmail.com>
|
|
pkgname=grantlee-git
|
|
pkgver=20100709
|
|
pkgrel=1
|
|
pkgdesc="Grantlee is a string template engine based on the Django template system."
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gitorious.org/grantlee"
|
|
license=('LGPL3')
|
|
groups=()
|
|
depends=('qt')
|
|
makedepends=('git' 'cmake')
|
|
provides=()
|
|
conflicts=()
|
|
replaces=()
|
|
backup=()
|
|
options=()
|
|
install=
|
|
source=()
|
|
noextract=()
|
|
md5sums=()
|
|
|
|
_gitroot="git://gitorious.org/grantlee/grantlee.git"
|
|
_gitname="grantlee"
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
msg "Connecting to GIT server...."
|
|
|
|
if [ -d $_gitname ] ; then
|
|
cd $_gitname && git pull origin
|
|
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"
|
|
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
|
cd "$srcdir/$_gitname-build"
|
|
|
|
#
|
|
# BUILD HERE
|
|
#
|
|
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
|
make || return 1
|
|
make DESTDIR="$pkgdir/" install
|
|
}
|