#!/bin/sh

name="xteddy"
title="xteddy"
package="xteddy"
version="2.0.1"
build="1"
noarch="n"
build_info="Standard build."

info="Cuddly teddy bear for your X Windows desktop."
desc="Normally, xteddy just sits around doing nothing. After all, that's
what teddy bears are for. Look at him, talk to him, place heavy
windows on top of him, zap him around until he becomes dizzy, do
what you like; he will always be your true (albeit virtual) friend."
category="toys/desktop"
environment="x11"
contact="$name@packages.packware.gnu.pl"
vendor="Packware Project"
vendor_id="pw"

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

docs_source="AUTHORS,ChangeLog,COPYING,INSTALL,NEWS,README,xteddy.README,xtuxxy.credit"
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 http://www.ITN.LiU.SE/~stegu/$name/$name-$version.tar.gz

configure_option --prefix=/usr/X11R6
configure_option --x-includes=/usr/X11R6/include/X11

install_option DESTDIR=$pkg_main

# Before compiling write the info file.
parent_package="$package"
write_info main

cd $src1

sed "s}usr/share}usr/X11R6/share}" configure > configure.new
cat configure.new > configure
sed "s}usr/share}usr/X11R6/share}" xteddy.c > xteddy.c.new
cat xteddy.c.new > xteddy.c
sed "s}usr/local/share}usr/X11R6/share}" xteddy_test > xteddy_test.new
cat xteddy_test.new > xteddy_test
sed "s}usr/local/share}usr/X11R6/share}" xtoys > xtoys.new
cat xtoys.new > xtoys

do_configure
do_make
do_install

make_docs

make_package main

clean_up

# ChangeLog
#
# 2002/06/10 Jaroslaw Swierczynski <swiergot@intersec.pl>
# - Initial release.
#
