ari's enigmail/pEp-on-linux build system this _also_ lives in https://pep.foundation/dev/repos/enigmailpEp/ in linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1KB

  1. #!/bin/sh
  2. set -e
  3. packages="git mercurial ca-certificates-cacert python-lxml sqlite3 patchelf zip gcc5 gcc5-c++ gpg2"
  4. devel_packages="sqlite3-devel libopenssl-devel libgpgme-devel boost-devel libevent-devel"
  5. zypper addrepo -f https://download.opensuse.org/repositories/security:/privacy/openSUSE_Leap_42.3/ security_privacy || zypper_retval=$?
  6. if [[ $zypper_retval -eq 4 ]] ; then
  7. echo ... ignoring
  8. else
  9. exit $zypper_retval
  10. fi
  11. zypper install $packages $devel_packages
  12. # install vanilla opensuse distribution. Idempotent - can be run "over"
  13. # an existing installation. nice :)
  14. cd `dirname $0`
  15. zypper -R `pwd`/vanilla \
  16. --plus-repo http://download.opensuse.org/distribution/leap/42.3/repo/oss/ \
  17. --plus-repo https://download.opensuse.org/repositories/security:/privacy/openSUSE_Leap_42.3/ \
  18. install patterns-openSUSE-64bit patterns-openSUSE-base zypper gpg2
  19. cd -
  20. read -p "will now symlink gcc-5 and related to be your default compiler suite, ctrl-c to abort!" ignore
  21. cd /usr/bin
  22. ln -sf gcc-5 cc
  23. ln -sf cpp-5 cpp
  24. ln -sf g++-5 g++
  25. ln -sf gcc-5 gcc
  26. ln -sf gcc-ar-5 gcc-ar
  27. ln -sf gcc-nm-5 gcc-nm
  28. ln -sf gcc-ranlib-5 gcc-ranlib
  29. cd -