mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
# $Id: PKGBUILD 2286 2009-09-14 09:25:52Z spupykin $
|
|
# 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=6
|
|
pkgdesc="clearsilver is a fast, powerful, and language-neutral HTML template system"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.clearsilver.net"
|
|
license=("custom")
|
|
depends=('python' 'perl' 'ruby' 'java-runtime')
|
|
options=('!emptydirs')
|
|
source=(http://www.clearsilver.net/downloads/$pkgname-$pkgver.tar.gz
|
|
clearsilver-ruby-1.9.patch)
|
|
md5sums=('b8c0c7fbe0ef5e06e0c935f134304d44'
|
|
'0ec4491f02b991fef5c384f3364e9fe0')
|
|
|
|
build()
|
|
{
|
|
cd $startdir/src/$pkgname-$pkgver
|
|
|
|
./configure --disable-csharp --prefix=/usr --with-python=/usr/bin/python
|
|
|
|
# we all hate broken makefiles... hooray!
|
|
sed -i "s@/usr/local/bin/python@/usr/bin/env python@g" scripts/document.py
|
|
sed -i "s@install.rb install@install.rb install --prefix=$startdir/pkg@g" ruby/Makefile
|
|
patch -p1 <$srcdir/clearsilver-ruby-1.9.patch
|
|
|
|
make || return 1
|
|
make PREFIX=$startdir/pkg DESTDIR=$startdir/pkg install || return 1
|
|
|
|
mkdir -p $startdir/pkg/usr/share/licenses/clearsilver && \
|
|
install -m644 CS_LICENSE $startdir/pkg/usr/share/licenses/clearsilver/license.txt && \
|
|
rm -rf $startdir/pkg/usr/lib/perl5/5.8.8/ || return 1
|
|
|
|
mv $startdir/pkg/usr/man/man3/* $startdir/pkg/usr/share/man/man3/ && \
|
|
rm -rf $startdir/pkg/usr/man || return 1
|
|
|
|
find $startdir/pkg -name '.packlist' -delete
|
|
find $startdir/pkg -name '*.pod' -delete
|
|
}
|