#!/bin/sh

name="vga_gamespack"
title="vga_gamespack"
package="vga_gamespack"
version="1.4"
build="1"
noarch="n"
build_info="Standard build."

info="Simple games for the Linux VGA console."
desc="The vga_gamespack package contains three games for the Linux VGA
console: Mines, Connect 4, and Othello."
category="games/misc"
environment="console/svga"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="README"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source ftp://sunsite.unc.edu/pub/Linux/games/strategy/$name-$version.tgz $name

apply_patch vga_gamespack-misc.patch 1

install_option DESTDIR=$pkg_main

parent_package="$package"
write_info main

cd $src1

do_make
do_install

change_mod main usr/games/vga_mines 4755
change_mod main usr/games/vga_othello 4755
change_mod main usr/games/vga_connectN 4755

make_docs

make_package main

clean_up
