---
name: moon-buggy
version: 1.0.51_2
origin: games/moon-buggy
comment: Drive a buggy across the moons surface
arch: freebsd:9:x86:64
www: http://www.seehuhn.de/comp/moon-buggy
maintainer: arved@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [GPLv2]
flatsize: 105753
desc: |
  Moon-buggy is a simple character graphics game, where you drive
  some kind of car across the moon's surface.
  Unfortunately there are dangerous craters there.
  Fortunately your car can jump over them!

  WWW: http://www.seehuhn.de/comp/moon-buggy
categories: [games]
files:
  /usr/local/bin/moon-buggy: c6f0dc12334d3be3e74fa0c8cfae1c5da6141ac9c33ff7e27ebfb98c64bef369
  /usr/local/info/moon-buggy.info: 8ae6f36fa6f97b7149a8292351af50882566be64827fbe0f831a898434fa3279
  /usr/local/man/man6/moon-buggy.6.gz: 2cb7596710da11c8a51c04bc85bfa1e5bd73a5bbc84c5a469f1c074dde65c55a
  /usr/local/share/licenses/moon-buggy-1.0.51_2/GPLv2: 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c
  /usr/local/share/licenses/moon-buggy-1.0.51_2/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/moon-buggy-1.0.51_2/catalog.mk: 096e5a08008fa427eadb126adbe00d1f1f3285fc539734cfe2a173f97638b090
directories:
  /usr/local/share/licenses/moon-buggy-1.0.51_2/: n
  /usr/local/share/licenses/: y
scripts:
  post-install: |
    cd /usr/local
    file=/usr/local/info/moon-buggy.info
    install-info --quiet /usr/local/info/moon-buggy.info ${file%25/*}/dir
  pre-deinstall: |
    cd /usr/local
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    cd /usr/local
    file=/usr/local/info/moon-buggy.info
    install-info --quiet --delete /usr/local/info/moon-buggy.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
