updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / tidyhtml-cvs / PKGBUILD
blob231b6148eb8829251225c1a641ce20f4b1205aa7
1 pkgname=tidyhtml-cvs
2 pkgver=20080429
3 pkgrel=1
4 pkgdesc="A tool to tidy down your HTML code to a clean style"
5 url="http://tidy.sourceforge.net/"
6 license=
7 arch=(i686 x86_64)
9 depends=()
10 makedepends=('cvs')
11 conflicts=('tidyhtml')
12 provides=('tidyhtml')
13 replaces=('tidyhtml')
14 license=('custom')
16 source=()
17 md5sums=()
19 _cvsroot=":pserver:anonymous:@tidy.cvs.sourceforge.net:/cvsroot/tidy"
20 _cvsmod="tidy"
22 build() {
23         cd $startdir/src
24         msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
25         if [ -d $_cvsmod/CVS ]; then
26                 (cd $_cvsmod && cvs -z3 update -d)
27         else
28                 cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
29         fi
31         msg "CVS checkout done or server timeout"
32         msg "Starting make..."
34         cp -rT $_cvsmod $_cvsmod-build
35         cd $_cvsmod-build
37         sh build/gnuauto/setup.sh
38         ./configure --prefix=/usr --enable-access --enable-utf16 --enable-asian
39         make
40         make DESTDIR=$pkgdir install
41         
42         install -Dm644 htmldoc/license.html $pkgdir/usr/share/licenses/$pkgname/license.html
43         rm $pkgdir/usr/lib/libtidy.la
45         rm -rf ../$_cvsmod-build
47 # vim:syntax=sh