mirror of https://gitlab.com/rnger/amath
39 lines
665 B
Bash
39 lines
665 B
Bash
|
#! /bin/sh
|
||
|
|
||
|
# Build a debian package for i386
|
||
|
|
||
|
rm -Rf amath
|
||
|
|
||
|
# Build
|
||
|
sh configure
|
||
|
make clean
|
||
|
make
|
||
|
mv amath amath.tmp
|
||
|
make clean
|
||
|
|
||
|
# Create filesystem layout
|
||
|
rm -Rf amath
|
||
|
|
||
|
mkdir -p amath/DEBIAN
|
||
|
mkdir -p amath/usr/bin
|
||
|
mkdir -p amath/usr/share/doc/amath
|
||
|
mkdir -p amath/usr/local/share/amath
|
||
|
|
||
|
mv amath.tmp amath/usr/bin/amath
|
||
|
|
||
|
# Copy documentation
|
||
|
cp LICENSE amath/usr/share/doc/amath/
|
||
|
cp HISTORY amath/usr/share/doc/amath/
|
||
|
cp build/debian/README amath/usr/share/doc/amath/
|
||
|
|
||
|
# Copy scripts
|
||
|
cp script/* amath/usr/local/share/amath/
|
||
|
|
||
|
# Make the package
|
||
|
cp build/debian/control amath/DEBIAN/
|
||
|
dpkg-deb --build amath
|
||
|
mv amath.deb amath-1.6.2_i386.deb
|
||
|
|
||
|
# Cleanup
|
||
|
rm -Rf amath
|