makedeb


easyrpg-rtp-alpha-git 0.1r.28dbdc9-0


Incomplete RPG Maker 2000/2003 material replacement

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for easyrpg-rtp-alpha-git.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: carstene1ns (AUR) <arch carsten-teibes de> - http://git.io/ctPKG

pkgname=easyrpg-rtp-alpha-git
pkgver=0.1r.28dbdc9
pkgrel=0
pkgdesc="Incomplete RPG Maker 2000/2003 material replacement"
arch=('all')
url="https://easy-rpg.org/"
license=('CC BY 4.0')
makedepends=('git' 'advancecomp')
optdepends=('easyrpg-player')
source=(${pkgname}::"git+https://github.com/EasyRPG/RTP.git")
b2sums=('SKIP')

pkgver() {
  cd ${pkgname}
  echo "0.$(git rev-list --count HEAD)r.$(git describe --always)"
}

build() {
      cd ${pkgname}
      make optimize
}

package () {
  # Create folders
  mkdir -p "${pkgdir}/usr/share/easyrpg"
  mkdir -p "${pkgdir}/usr/share/doc/easyrpg"
  mkdir -p "${pkgdir}/usr/share/games/easyrpg"
  # Copy
  cp -r "${srcdir}/${pkgname}" "${pkgdir}/usr/share/games/easyrpg/rtp"
  rm -r "${pkgdir}/usr/share/games/easyrpg/rtp/.git"
  rm "${pkgdir}/usr/share/games/easyrpg/rtp/Makefile"
  # Create doc
  mv "${pkgdir}/usr/share/games/easyrpg/rtp/AUTHORS.md" "${pkgdir}/usr/share/doc/easyrpg/authors"
  mv "${pkgdir}/usr/share/games/easyrpg/rtp/README.md" "${pkgdir}/usr/share/doc/easyrpg/readme"
  mv "${pkgdir}/usr/share/games/easyrpg/rtp/COPYING" "${pkgdir}/usr/share/doc/easyrpg/license"
  # link rtp to share/easyrpg
  ln -sf "/usr/share/games/easyrpg/rtp" "${pkgdir}/usr/share/easyrpg/rtp"
}