commit 95a457a847813f7a8ca73316804086c4f274d7e9 Author: Thomas Penteker <tek@serverop.de> Date: Fri Oct 24 12:29:16 2014 +0200 htmldoc: 1.8.27 -> 1.8.28 diff --git a/htmldoc/.md5sum b/htmldoc/.md5sum index 059e09e..873792b 100644 --- a/htmldoc/.md5sum +++ b/htmldoc/.md5sum @@ -1 +1,2 @@ -35589e7b8fe9c54e11be87cd5aec4dcc htmldoc-1.8.27-source.tar.bz2 +27d2d8da8d58eedcdf16e63bad8c55a7 fix_random.diff +8e4e3f49ee9b2c5af01eb81a518ce7e7 htmldoc-1.8.28-source.tar.bz2 diff --git a/htmldoc/Pkgfile b/htmldoc/Pkgfile index b1ed9c4..533c118 100644 --- a/htmldoc/Pkgfile +++ b/htmldoc/Pkgfile @@ -5,14 +5,23 @@ # Depends on: name=htmldoc -version=1.8.27 -release=2 -source=(http://ftp.easysw.com/pub/$name/$version/$name-$version-source.tar.bz2) +version=1.8.28 +release=1 +source=(http://msweet.org/files/project1/$name-$version-source.tar.bz2 + fix_random.diff) build() { - cd $name-$version - ./configure --prefix=/usr - make - make prefix=$PKG/usr bindir=$PKG/usr/bin install - rm -rf $PKG/usr/share/doc + cd $name-$version + + patch -i $SRC/fix_random.diff -p1 + + ./configure --prefix=/usr --disable-gnutls + + make + make prefix=$PKG/usr \ + datadir=$PKG/usr/share \ + bindir=$PKG/usr/bin \ + mandir=$PKG/usr/man install + + rm -rf $PKG/usr/share/doc } diff --git a/htmldoc/fix_random.diff b/htmldoc/fix_random.diff new file mode 100644 index 0000000..7d59533 --- /dev/null +++ b/htmldoc/fix_random.diff @@ -0,0 +1,18 @@ +diff -ru a/htmldoc/http.h b/htmldoc/http.h +--- a/htmldoc/http.h 2014-10-24 12:08:19.063189382 +0200 ++++ b/htmldoc/http.h 2014-10-24 12:07:33.583189387 +0200 +@@ -16,6 +16,14 @@ + */ + + #ifndef _CUPS_HTTP_H_ ++ ++#ifndef CUPS_RAND() ++ #define CUPS_RAND() random() ++#endif ++#ifndef CUPS_SRAND(v) ++ #define CUPS_SRAND(v) srandom(v) ++#endif ++ + # define _CUPS_HTTP_H_ + + /*