GithubHelp home page GithubHelp logo

sean0921 / sac_debian_packager Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 68 KB

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

License: The Unlicense

Shell 99.90% MATLAB 0.10%
earthscience seismology ubuntu debian packaging

sac_debian_packager's Introduction

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.