# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ # Maintainer: eric # Contributor : Markus Meissner # pkgname=tidyhtml pkgver=1.37 pkgrel=2 pkgdesc='A tool to tidy down your HTML code to a clean style' arch=(i686 x86_64) license=('custom') source=() url="http://tidy.sourceforge.net/" depends=('glibc') makedepends=('cvs') options=('force') build(){ cd $startdir/src/ cvs -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy login cvs -z3 -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy co -P tidy #cvs -d:pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy update -r $pkgver || return 1 cd $startdir/src/tidy /bin/sh build/gnuauto/setup.sh ./configure --prefix=/usr #cd $startdir/src/tidy/build/gmake/ #/bin/sed -i "s|^runinst_prefix=/usr/local|runinst_prefix=$startdir/pkg/usr/|g" Makefile #/bin/sed -i "s|^devinst_prefix=/usr/local|devinst_prefix=$startdir/pkg/usr/|g" Makefile #/bin/sed -i "s|^CFLAGS= -g -Wall -Wno-switch -Wno-parentheses -I \$(INCDIR)|CFLAGS= -march=i686 -O2 -pipe -Wall -Wno-switch -Wno-parentheses -I \$(INCDIR)|" Makefile /usr/bin/make || return 1 /usr/bin/make DESTDIR=$startdir/pkg install find $startdir/pkg -name '*\.la' -exec rm -f {} \; install -Dm 644 htmldoc/license.html \ ${startdir}/pkg/usr/share/licenses/${pkgname}/license.txt }