desktop/support-pkg-grantlee-git/PKGBUILD

50 lines
1.1 KiB
Bash
Raw Normal View History

2013-12-18 02:36:04 +08:00
# Platform Packages for Chakra, part of chakra-project.org
2013-12-18 02:36:04 +08:00
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-07-10 10:26:08 +08:00
pkgname=grantlee-git
pkgver=20101019
2010-07-10 10:26:08 +08:00
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=('cmake')
2010-07-10 10:26:08 +08:00
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://chakra-project.org/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz)
2010-07-10 10:26:08 +08:00
noextract=()
md5sums=(81a65a4154a469c37521e32f48624245)
2010-07-10 10:26:08 +08:00
# create tarball: source PKGBUILD && mksource
2010-07-10 10:26:08 +08:00
mksource() {
git clone git://gitorious.org/grantlee/grantlee.git
pushd grantlee
popd
tar -cvJf ${pkgname}-${pkgver}.tar.xz grantlee/*
md5sum ${pkgname}-${pkgver}.tar.xz
}
2010-07-10 10:26:08 +08:00
build() {
cd "$srcdir/grantlee"
2010-07-10 10:26:08 +08:00
2013-12-18 02:36:04 +08:00
2010-07-10 10:26:08 +08:00
# BUILD HERE
2013-12-18 02:36:04 +08:00
2010-07-10 10:26:08 +08:00
2010-11-09 16:14:53 +08:00
mkdir -p build &&
2010-07-10 10:26:08 +08:00
cd build &&
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make || return 1
make DESTDIR="$pkgdir/" install
}