1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Ivan Sichmann Freitas <[email protected]>
# Contributor: Jaroslav Lichtblau <[email protected]>
# Contributor: Jeff Mickey <[email protected]>

pkgname=ctemplate
pkgver=2.2
pkgrel=1
pkgdesc="A library implementing a simple but powerful template language for C++"
arch=('i686' 'x86_64')
url="http://code.google.com/p/ctemplate/"
license=('BSD')
depends=('gcc-libs')
options=('!libtool')
source=(http://ctemplate.googlecode.com/files/$pkgname-$pkgver.tar.gz)
md5sums=('1de89d9073f473c1e31862c4581636f3')

build() {
  cd "${srcdir}/$pkgname-$pkgver"

  CXXFLAGS="$CXXFLAGS" ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/$pkgname-$pkgver"
  make DESTDIR="${pkgdir}" install

  #license
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}