Advertisement
brandonmack111

bash libs install

Jan 13th, 2025 (edited)
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.03 KB | Software | 0 0
  1. for package in $(grep -v '^#' ../lib-7.md5 | awk '{print $2}')
  2. do
  3.   packagedir=${package%.tar.?z*}
  4.   echo "Building $packagedir"
  5.  
  6.   tar -xf $package
  7.   pushd $packagedir
  8.   docdir="--docdir=$XORG_PREFIX/share/doc/$packagedir"
  9.  
  10.   case $packagedir in
  11.     libXfont2-[0-9]* )
  12.       ./configure $XORG_CONFIG $docdir --disable-devel-docs
  13.     ;;
  14.  
  15.     libXt-[0-9]* )
  16.       ./configure $XORG_CONFIG $docdir \
  17.                   --with-appdefaultdir=/etc/X11/app-defaults
  18.     ;;
  19.  
  20.     libXpm-[0-9]* )
  21.       ./configure $XORG_CONFIG $docdir --disable-open-zfile
  22.     ;;
  23.  
  24.     libpciaccess* )
  25.       mkdir build
  26.       cd    build
  27.         meson setup --prefix=$XORG_PREFIX --buildtype=release ..
  28.         ninja
  29.         #ninja test
  30.         as_root ninja install
  31.       popd     # $packagedir
  32.       continue # for loop
  33.     ;;
  34.  
  35.     * )
  36.       ./configure $XORG_CONFIG $docdir
  37.     ;;
  38.   esac
  39.  
  40.   make
  41.   #make check 2>&1 | tee ../$packagedir-make_check.log
  42.   as_root make install
  43.   popd
  44.   rm -rf $packagedir
  45.   as_root /sbin/ldconfig
  46. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement