[arch-commits] Commit in tidyhtml/trunk (PKGBUILD)
Allan McRae
allan at archlinux.org
Sun Feb 21 04:47:38 UTC 2010
Date: Saturday, February 20, 2010 @ 23:47:38
Author: allan
Revision: 69561
upgpkg: tidyhtml 1.46-1
update, rework PKGBUILD
Modified:
tidyhtml/trunk/PKGBUILD
----------+
PKGBUILD | 51 ++++++++++++++++++++++++++-------------------------
1 file changed, 26 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-02-21 02:20:51 UTC (rev 69560)
+++ PKGBUILD 2010-02-21 04:47:38 UTC (rev 69561)
@@ -1,35 +1,36 @@
# $Id$
# Maintainer: eric <eric at archlinux.org>
# Contributor : Markus Meissner <markus at meissna.de>
-#
pkgname=tidyhtml
-pkgver=1.37
-pkgrel=2
-pkgdesc='A tool to tidy down your HTML code to a clean style'
-arch=(i686 x86_64)
+# obtain pkgver from http://tidy.cvs.sourceforge.net/tidy/tidy/src/version.h?view=markup
+pkgver=1.46
+pkgrel=1
+pkgdesc="A tool to tidy down your HTML code to a clean style"
+arch=('i686' 'x86_64')
+url="http://tidy.sourceforge.net/"
license=('custom')
-source=()
-url="http://tidy.sourceforge.net/"
-depends=('glibc')
-makedepends=('cvs')
-options=('force')
+options=('!libtool')
+source=(ftp://ftp.archlinux.org/other/tidyhtml/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('3d970d54be83c5ec985687e9976a2832')
+mksource() {
+ mkdir tidyhtml-${pkgver}
+ cd tidyhtml-${pkgver}
+ cvs -d:pserver:anonymous at tidy.cvs.sourceforge.net:/cvsroot/tidy login #hit enter for password
+ cvs -z3 -d:pserver:anonymous at tidy.cvs.sourceforge.net:/cvsroot/tidy co -P tidy
+ cd ..
+ tar -cvjf tidyhtml-${pkgver}.tar.bz2 tidyhtml-${pkgver}/*
+}
+
build(){
- cd $startdir/src/
- cvs -d:pserver:anonymous at tidy.cvs.sourceforge.net:/cvsroot/tidy login
- cvs -z3 -d:pserver:anonymous at tidy.cvs.sourceforge.net:/cvsroot/tidy co -P tidy
- #cvs -d:pserver:anonymous at tidy.cvs.sourceforge.net:/cvsroot/tidy update -r $pkgver || return 1
- cd $startdir/src/tidy
- /bin/sh build/gnuauto/setup.sh
+ cd $srcdir/${pkgname}-${pkgver}/tidy
+ source 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
+ make || return 1
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 htmldoc/license.html \
+ ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
More information about the arch-commits
mailing list