You are not logged in.

#1 2004-10-19 06:56:47

darose
Member
Registered: 2004-04-13
Posts: 158

[new package] The Zork interactive fiction adventure games!

OK - I'm showing my age here.  Anyone under 35 is probably going to be clueless about these packages.  But, ah, they hearken me back to those innocent days of my youth when TRS-80's and Atari's ruled the world.  Anyway, 'nuff of that.

Here's the Zork series (1, 2, and 3) of text-based interactive fiction adventures games from Infocom.

Requires a z-machine code interpreter, which I've also packaged (jzip).

Enjoy!  Feedback welcome!

DR

---

Zork 1
uploaded to incoming as zork1-1-1a.tar.gz (upload as zork1-1-1.tar.gz failed)
PKGBUILD:

# Zork I adventure game

# Contributor: David Rosenstrauch <darose@darose.net>

pkgname=zork1
pkgver=1
pkgrel=1
pkgdesc=""
url="http://www.csd.uwo.ca/Infocom/"
license="custom"
# see README.TXT file for license
depends=(jzip)
#install=
source=(http://www.csd.uwo.ca/Infocom/Download/$pkgname.zip)
#md5sums=()

build() {
  # move the source files into $startdir/src/$pkgname-$pkgver (but not the original zip)
  mkdir $startdir/tmp
  mv $startdir/src/* $startdir/tmp/
  mv $startdir/tmp/$pkgname.zip $startdir/src/
  install -D -m755 -d $startdir/src/$pkgname-$pkgver
  mv $startdir/tmp/* $startdir/src/$pkgname-$pkgver
  rmdir $startdir/tmp

  cd $startdir/src/$pkgname-$pkgver
#  ./configure --prefix=/usr
#  make || return 1
#  make prefix=$startdir/pkg/usr install

  install -D -m644 DATA/ZORK1.DAT $startdir/pkg/usr/share/zork/$pkgname/ZORK1.DAT
  install -D -m644 README.TXT $startdir/pkg/usr/share/zork/$pkgname/README.TXT
  echo "#!/bin/sh" > $pkgname
  echo jzip -m /usr/share/zork/$pkgname/ZORK1.DAT >> $pkgname
  install -D -m755 $pkgname $startdir/pkg/usr/bin/$pkgname
}

Zork 2
uploaded to incoming as zork2-1-1.tar.gz
PKGBUILD:

# Zork II adventure game

# Contributor: David Rosenstrauch <darose@darose.net>

pkgname=zork2
pkgver=1
pkgrel=1
pkgdesc=""
url="http://www.csd.uwo.ca/Infocom/"
license="custom"
# see README.TXT file for license
depends=(jzip)
#install=
source=(http://www.csd.uwo.ca/Infocom/Download/$pkgname.zip)
#md5sums=()

build() {
  # move the source files into $startdir/src/$pkgname-$pkgver (but not the original zip)
  mkdir $startdir/tmp
  mv $startdir/src/* $startdir/tmp/
  mv $startdir/tmp/$pkgname.zip $startdir/src/
  install -D -m755 -d $startdir/src/$pkgname-$pkgver
  mv $startdir/tmp/* $startdir/src/$pkgname-$pkgver
  rmdir $startdir/tmp

  cd $startdir/src/$pkgname-$pkgver
#  ./configure --prefix=/usr
#  make || return 1
#  make prefix=$startdir/pkg/usr install

  install -D -m644 DATA/ZORK2.DAT $startdir/pkg/usr/share/zork/$pkgname/ZORK2.DAT
  install -D -m644 README.TXT $startdir/pkg/usr/share/zork/$pkgname/README.TXT
  echo "#!/bin/sh" > $pkgname
  echo jzip -m /usr/share/zork/$pkgname/ZORK2.DAT >> $pkgname
  install -D -m755 $pkgname $startdir/pkg/usr/bin/$pkgname
}

Zork 3
uploaded to incoming as zork3-1-1.tar.gz
PKGBUILD:

# Zork III adventure game

# Contributor: David Rosenstrauch <darose@darose.net>

pkgname=zork3
pkgver=1
pkgrel=1
pkgdesc=""
url="http://www.csd.uwo.ca/Infocom/"
license="custom"
# see README.TXT file for license
depends=(jzip)
#install=
source=(http://www.csd.uwo.ca/Infocom/Download/$pkgname.zip)
#md5sums=()

build() {
  # move the source files into $startdir/src/$pkgname-$pkgver (but not the original zip)
  mkdir $startdir/tmp
  mv $startdir/src/* $startdir/tmp/
  mv $startdir/tmp/$pkgname.zip $startdir/src/
  install -D -m755 -d $startdir/src/$pkgname-$pkgver
  mv $startdir/tmp/* $startdir/src/$pkgname-$pkgver
  rmdir $startdir/tmp

  cd $startdir/src/$pkgname-$pkgver
#  ./configure --prefix=/usr
#  make || return 1
#  make prefix=$startdir/pkg/usr install

  install -D -m644 DATA/ZORK3.DAT $startdir/pkg/usr/share/zork/$pkgname/ZORK3.DAT
  install -D -m644 README.TXT $startdir/pkg/usr/share/zork/$pkgname/README.TXT
  echo "#!/bin/sh" > $pkgname
  echo jzip -m /usr/share/zork/$pkgname/ZORK3.DAT >> $pkgname
  install -D -m755 $pkgname $startdir/pkg/usr/bin/$pkgname
}

jzip
uploaded to incoming as jzip-2.1-1.tar.gz
PKGBUILD:

# jzip z-code game interpreter for Infocom games

# Contributor: David Rosenstrauch <darose@darose.net>

pkgname=jzip
pkgver=2.1
dlpkgver=21-10oct2000
pkgrel=1
pkgdesc="Jzip is an interpreter for games in the Infocom Zcode story file format"
url="http://jzip.sourceforge.net/"

license="custom"
# custom license:
# Jzip V2.1 Infocom/Inform Zcode Format Interpreter
# --------------------------------------------------------------------
# Copyright (c) 2000  John D. Holder.  All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

depends=(ncurses)
#install=
source=(http://dl.sourceforge.net/$pkgname/$pkgname$dlpkgver.zip makefile-patch.diff)
#md5sums=()

build() {
  # move the source files into $startdir/src/$pkgname-$pkgver (but not the original zip)
  mkdir $startdir/tmp
  mv $startdir/src/* $startdir/tmp/
  mv $startdir/tmp/$pkgname$dlpkgver.zip $startdir/src/
  install -D -m755 -d $startdir/src/$pkgname-$pkgver
  mv $startdir/tmp/* $startdir/src/$pkgname-$pkgver
  rmdir $startdir/tmp

  cd $startdir/src/$pkgname-$pkgver
  cp unixio.mak Makefile

#  # apply patch to makefile
  patch -Np1 < $startdir/makefile-patch.diff

#  ./configure --prefix=/usr
  make || return 1
#  make prefix=$startdir/pkg/usr install

  install -D -m755 $pkgname $startdir/pkg/usr/bin/$pkgname
}

Offline

#2 2004-10-20 01:58:46

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [new package] The Zork interactive fiction adventure games!

wow..
I worked with a guy in oregon for a while...he was a die hard zork guy. He even hosted a zork library for a while (not sure which one..).


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB