CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sed: updated mandir
[crossrootfs.git] / flex / Pkgfile
index f35912fbfec45ca42a76bcc808d43d03ee6dc5a0..e7534fb3afaa7b5f73566627cbcc62daa0af7cc8 100644 (file)
@@ -5,22 +5,27 @@
 # Depends on:
 
 name=flex
-version=2.5.35
+version=2.5.39
 release=2
-source=(http://dl.sourceforge.net/sourceforge/flex/$name-$version.tar.bz2)
+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}
 }