summaryrefslogtreecommitdiff
path: root/community/clearsilver/PKGBUILD
blob: 0f19cd85cd8f9868cd358ea353553d2678a49b28 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 27254 2010-09-18 22:01:47Z schuay $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer : Aaron Griffin <aaron@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=clearsilver
pkgver=0.10.5
pkgrel=7
pkgdesc="clearsilver is a fast, powerful, and language-neutral HTML template system"
arch=('i686' 'x86_64' 'mips64el')
url='http://www.clearsilver.net'
license=('custom')
depends=('python2' 'perl' 'ruby' 'java-runtime')
options=('!emptydirs')
source=("http://www.clearsilver.net/downloads/$pkgname-$pkgver.tar.gz"
        "clearsilver-ruby-1.9.patch")
md5sums=('b8c0c7fbe0ef5e06e0c935f134304d44'
         'd9db4e5985254e1b0d63e9ff042773f4')

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

  ./configure --disable-csharp --prefix=/usr --with-python=/usr/bin/python2

  # we all hate broken makefiles... hooray!
  sed -i "s@/usr/local/bin/python@/usr/bin/env python2@g" scripts/document.py
  sed -i "s@install.rb install@install.rb install --prefix=$pkgdir@g" ruby/Makefile
  patch -p1 <$srcdir/clearsilver-ruby-1.9.patch

  make
  make PREFIX=$pkgdir DESTDIR=$pkgdir install

  install -Dm644 CS_LICENSE $pkgdir/usr/share/licenses/clearsilver/license.txt
  rm -rf $pkgdir/usr/lib/perl5/5.8.8/

  mv $pkgdir/usr/man/man3/* $pkgdir/usr/share/man/man3/
  rm -rf $pkgdir/usr/man

  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}