Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Alonso Rodriguez <alonso@null.net>
  4. # Adaptation from AUR systemc
  5.  
  6. # Checkeamos si se está ejecutando como root
  7. if [ "$(id -u)" -ne 0 ]; then
  8.     echo 'This script must be run as superuser' >&2
  9.     exit 1
  10. fi
  11.  
  12. pkgname='systemc'
  13. pkgver='2.3.3'
  14.  
  15. wget http://accellera.org/images/downloads/standards/systemc/${pkgname}-${pkgver}.tar.gz
  16.  
  17. tar xzvf systemc-${pkgver}.tar.gz
  18. cd systemc-${pkgver} || return
  19.  
  20. # Start build
  21. ./configure --prefix=/usr --with-unix-layout=yes
  22. make -j "$(getconf _NPROCESSORS_ONLN)"
  23.  
  24. make install
  25.  
  26. echo "Install succesful"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement