# Maintainer: exponential # Contributor: carstene1ns (AUR) - 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" }