makedeb


square-wad 2.1-0


The Adventures of Square, Episode 1&2 game data

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for square-wad.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: Jan Cholasta (AUR) <grubber at grubber cz>

pkgname=square-wad
_wad="square1.pk3"
pkgver=2.1
pkgrel=0
pkgdesc="The Adventures of Square, Episode 1&2 game data"
arch=('all')
url='http://adventuresofsquare.com/'
license=('CCPL:by-nc' 'MIT')
# At least one game engine
optdepends=('drdteam-repo: repo for the engines bellow'
            'gzdoom: game engine'
            'lzdoom: fork of gzdoom for older hardware (alternative)')
source=("${pkgname}-${pkgver}.zip::${url}downloads/square-ep2-pk3-${pkgver}.zip")
noextract=("${pkgname}-${pkgver}.zip")
b2sums=('5530aa655665700655d0a0f05bd79c79af66ce7875f5ef463afa066a9467b2ba1cb9b1aa862abc9d052e3494f3498c5aa9f479937e83cfbe2a271892fe87ae55')

prepare() {
  cd "${srcdir}"
  # extract archive
  mkdir -p "${pkgname}-${pkgver}"
  bsdtar -xf "${pkgname}-${pkgver}.zip" -C "${pkgname}-${pkgver}"
}

package() {

    install -D -m644 "${pkgname}-${pkgver}/${_wad}" "${pkgdir}/usr/share/games/doom/${_wad}"
    install -D -m644 "${pkgname}-${pkgver}/CHANGELOG.txt" "${pkgdir}/usr/share/doc/${pkgname}/changelog"
    gzip "${pkgdir}/usr/share/doc/${pkgname}/changelog"

    echo 'The ACS scripting source code of The Adventures of Square is licensed
under the MIT License.

All other assets pertaining to The Adventures of Square and NOT those
of the ZDoom Engine are licensed under the Creative Commons 
Attribution-NonCommercial 4.0 International License.' > "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
}