# debian/packages for dlua4.0
# Written by Charles Briscoe-Smith, May 1999.  Public Domain.
# Customised for dlua4.0 by Jay Carlson <nop@nop.com>

Source: dlua4.0
Section: interpreters
Priority: optional
Maintainer: Jay Carlson <nop@nop.com>
#Packager: T. Raven <nevermore@poe.net>
Standards-Version: 3.1.0
#Upstream-Source: <URL:ftp://some.where/over/the/rainbow.tar.gz>
#Home-Page: <URL:http://some.thing/nasty/in/the/woodshed.html>
Description: Enhanced Lua 4.0 for Debian
 .
 dlua4.0 is an enhanced Lua system for Debian, supporting loadable modules.
#Packaged-For: Yoyodyne Inc.
Copyright: .
 Debian packaging and backports by Jay Carlson; placed in the public domain.
 .
 The dlua.c executable is based on lua.c from the Lua 4.0 distribution:
 .
 Copyright (C) 1994-2000 TeCGraf, PUC-Rio.  All rights reserved.
 .
 Permission is hereby granted, without written agreement and without license
 or royalty fees, to use, copy, modify, translate, and distribute
 this software and its documentation (hereby called the "package")
 for any purpose, including commercial applications, subject to
 the following conditions:
 .
  * The above copyright notice and this permission notice shall appear in all
    copies or substantial portions of this package.
 .
  * The origin of this package must not be misrepresented; you must not
    claim that you wrote the original package. If you use this package in a
    product, an acknowledgment in the product documentation would be greatly
    appreciated (but it is not required).
 .
  * Altered source versions must be plainly marked as such, and must not be
    misrepresented as being the original package.
 .
 The authors specifically disclaim any warranties, including, but not limited
 to, the implied warranties of merchantability and fitness for a particular
 purpose.  The package provided hereunder is on an "as is" basis, and the
 authors have no obligation to provide maintenance, support, updates,
 enhancements, or modifications.  In no event shall TeCGraf, PUC-Rio, or the
 authors be held liable to any party for direct, indirect, special,
 incidental, or consequential damages arising out of the use of this package
 and its documentation.
 .
 The Lua language and this implementation have been entirely designed and written
 by Waldemar Celes, Roberto Ierusalimschy, and Luiz Henrique de Figueiredo
 at TeCGraf, PUC-Rio in Brazil.
 .
Major-Changes:
 .
Build: sh
 #/configure --prefix=/usr
 make
Clean: sh
 #make distclean || true
 make clean

Package: dlua4.0
Architecture: any
Depends: [/usr/bin/*], dlua4.0-common
Description: Debian-enhanced Lua 4.0 - interpreter
 .
 This is the command-line interpreter, featuring readline.
Install: sh
 yada install -bin dlua4.0
 yada install -man dlua4.0.1
Alternatives: 
 /usr/bin/dlua -> dlua -> /usr/bin/dlua4.0 (30)
Doc-Depends: dlua4.0-common

Package: dlua4.0-common
Architecture: all
#Depends: 
Recommends: dlua4.0
Description: Debian-enhanced Lua 4.0 - packages
 .
 This package supplies the Debian Lua package management system.
Install: sh
 yada install -conffile -subdir dlua4.0 init.lua
 yada install -dir /usr/share/dlua4.0
 yada install -dir /usr/lib/dlua4.0
 yada install -data -into /usr/share/dlua4.0 lua/*.lua
 yada install -doc README
 yada install -doc -as changelog.Debian debian/changelog
Postinst: sh 
 case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
        mkdir -p /usr/local/share/dlua4.0 || true
        mkdir -p /usr/local/lib/dlua4.0 || true        
    ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
 esac
Prerm: sh
 rmdir /usr/local/share/dlua4.0 || true
 rmdir /usr/local/lib/dlua4.0 || true
