Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Debian/Ubuntu format SELF-packaging script for Seismic Analysis Code by IRIS

License

Notifications You must be signed in to change notification settings

sean0921/sac_debian_packager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • This package is no longer maintained before I come back to seismology world. If someone is agreed with the concept of this repo, fork is welcome!

SAC Debian/Ubuntu Packager

  • NOTE: Because of LICENSE restriction, this repository does NOT provide IRIS' SAC source code or binary packages for you. You have to APPLY and download sources tarball on your own if you have related qualifications!

Benefits

  • Let installing and uninstalling steps more cleanly (NO MORE sudo make install! It will mess up your system!)
  • After installation, you don't have to manually set environment variables or source anything by yourself!

Supported Linux Distribution

  • Debian Stretch (9/oldoldstable)
  • Debian Buster (10/oldstable)
  • Debian Bullseye (11/stable)
  • Debian Sid (bookworm/sid)
  • Ubuntu Xenial Xerus (16.04)
  • Ubuntu Bionic Beaver (18.04)
  • Ubuntu Focal Fossa (20.04)
  • Ubuntu Jammy Jellyfish (22.04)

Supported Linux Architecture

  • amd64
  • arm64 (aarch64)

How to use this script

  • If you know what docker is, it is suggested to use it or create new clean container/chroot to simplify your build environment.
  • If you are lazy to use docker/other chroot-like environment, please make sure your environment are not too messy (too many custom installation, i.e. sudo make install)

Download latest release of this script

You can download current *.zip archive of this repository and extract it.

Put downloaded SAC source tarball into cloned repo

cd sac_debian_packager-${VERSION_NUMBER}
cp ${LOCATION_OF_DOWNLOADED_TARBALL} ./              ## For example, cp ~/Download/sac-101.6a-source.tar.gz ./

Install build dependencies

apt install build-essential libx11-dev libncurses-dev libreadline-dev autoconf automake autopoint autotools-dev libcurl4-openssl-dev zlib1g-dev libxml2-dev pkg-config ### with root

Run build scripts

change your current directory to this source code repo and:

./build.bash                          ### with normal user, or you can type bash build.bash

Install generated *.deb file

apt install ./sac-iris-*_amd64.deb    #### with root, you can change * to specific version number

Done!

  • You can directly type sac and run the SAC program, without any shell profile installation.

Remove installed SAC package

apt remove sac-iris      ### with root

Clean Build Directory before Rebuild

./build.bash --clean     ### with normal user

To Do

  • Adding build dependencies package installing procedure to build.bash.
  • fix shellcheck warning
  • Add patch to fix wrong autoconf name (configure.in should be configure.ac), simplified duplicated patch. (upstream fixed)
  • Pass the compilaion with -fno-common mode (upstream fixed)