2009-03-14 15:49:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Set up a chroot environment based on Debian Sarge, for building.
|
|
|
|
#
|
|
|
|
# By building based on binaries from a very old version, all recent
|
|
|
|
# versions can be supported.
|
|
|
|
|
|
|
|
MIRROR=http://archive.debian.org/debian-archive/debian
|
|
|
|
RELEASE=sarge
|
|
|
|
|
|
|
|
if [ $# = 0 ]; then
|
|
|
|
echo "Usage: $0 <dest dir>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
dest_dir="$1"
|
|
|
|
|
|
|
|
add_pkg() {
|
2009-03-14 21:21:31 +00:00
|
|
|
if [ ".$pkgs" = "." ]; then
|
2009-03-14 15:49:06 +00:00
|
|
|
pkgs="$1"
|
|
|
|
else
|
|
|
|
pkgs="$pkgs,$1"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pkgs=""
|
|
|
|
|
2009-03-14 21:21:31 +00:00
|
|
|
# Basic packages for C build:
|
2009-03-14 15:49:06 +00:00
|
|
|
add_pkg gcc
|
|
|
|
add_pkg make
|
2009-03-14 21:21:31 +00:00
|
|
|
|
|
|
|
# Chocolate Doom dependencies:
|
2009-03-14 15:49:06 +00:00
|
|
|
add_pkg automake1.8
|
|
|
|
add_pkg autoconf
|
2009-03-14 21:21:31 +00:00
|
|
|
add_pkg libtool
|
2009-03-14 15:49:06 +00:00
|
|
|
add_pkg libsdl1.2-dev
|
|
|
|
add_pkg libsdl-mixer1.2-dev
|
|
|
|
add_pkg libsdl-net1.2-dev
|
|
|
|
add_pkg python-imaging
|
2009-03-14 21:21:31 +00:00
|
|
|
|
|
|
|
# Needed for svn checkout
|
2009-03-14 15:49:06 +00:00
|
|
|
add_pkg subversion
|
2009-03-14 21:21:31 +00:00
|
|
|
|
|
|
|
# Packages for debian package build:
|
2009-03-14 20:26:45 +00:00
|
|
|
add_pkg debhelper
|
2009-03-14 16:37:14 +00:00
|
|
|
add_pkg dpkg-dev
|
|
|
|
add_pkg cdbs
|
2009-03-14 15:49:06 +00:00
|
|
|
|
2009-03-14 21:21:31 +00:00
|
|
|
# Basic convenience packages:
|
|
|
|
add_pkg vim-full
|
|
|
|
add_pkg less
|
|
|
|
|
2009-03-14 22:01:21 +00:00
|
|
|
debootstrap "--include=$pkgs" "$RELEASE" "$dest_dir" "$MIRROR"
|
2009-03-14 15:49:06 +00:00
|
|
|
|