X-Git-Url: http://gitweb/?a=blobdiff_plain;f=flex%2FPkgfile;h=e7534fb3afaa7b5f73566627cbcc62daa0af7cc8;hb=7b0860c6d01e4b09cdf74a00447f4345670af8cb;hp=24652be9ab8c51860397d54de2d49451c2fc7040;hpb=b751b192b8a9f558df99b4050babc1b84d45a372;p=crossrootfs.git

diff --git a/flex/Pkgfile b/flex/Pkgfile
index 24652be..e7534fb 100644
--- a/flex/Pkgfile
+++ b/flex/Pkgfile
@@ -5,22 +5,27 @@
 # Depends on:
 
 name=flex
-version=2.5.35
-release=1
-source=(http://dl.sourceforge.net/sourceforge/flex/$name-$version.tar.bz2)
+version=2.5.39
+release=2
+source=(http://downloads.sourceforge.net/project/$name/$name-$version.tar.bz2)
 
 build() {
   cd $name-$version
+
   echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache 
   echo "ac_cv_func_realloc_0_nonnull=yes" >> config.cache
+
   ./configure --build=$CHOST \
               --host=$CTARGET \
               --prefix=/usr \
               --disable-nls \
               --cache-file=config.cache
+
   make
   make DESTDIR=$PKG install
+
   ln -sf flex $PKG/usr/bin/lex
-  ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz
-  rm -rf $PKG/usr/info
+  ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
+
+  rm -r $PKG/usr/share/{info,doc}
 }