CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
flex: updated to 2.5.37 and aligned with upstream
[crossrootfs.git] / flex / Pkgfile
index d108c7e91d00848e9abe9b7024fd17e83e029b62..9667225f2e7017102ad96dc69120b2c89d9899e7 100644 (file)
@@ -1,26 +1,32 @@
 # Description: Fast Lexical Analyzer Generator
 # URL: http://flex.sourceforge.net/
 # Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
 # Depends on:
 
 name=flex
-version=2.5.35
+version=2.5.37
 release=1
-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 \
+              --mandir=/usr/man \
               --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
+
+  rm -rf $PKG/usr/share
 }