# Maintainer: HueponiK # Contributor: WorMzy Tykashi # Contributor: Stefan Karner # Contributor: Drenn pkgbase=openxcom-hueponik pkgname=('openxcom-hueponik' 'openxcom-docs-hueponik') _gitname=OpenXcom pkgver=1.0_r3108_g427f9e121 pkgrel=1 pkgdesc="An open-source reimplementation of the famous X-COM game (version with improved scaling option)" arch=('i686' 'x86_64' 'arm64') url="https://openxcom.org/" license=('GPL3') makedepends=('git' 'xmlto' 'docbook-xml' 'docbook-xsl' 'doxygen' 'sdl_mixer' 'sdl_gfx' 'sdl_image' 'sdl' 'yaml-cpp' 'libgl' 'gcc-libs' 'glibc' 'boost' 'glu' 'cmake' 'hicolor-icon-theme' 'xorgproto') source=(git+"https://github.com/HueponiK/${_gitname}.git") sha256sums=('SKIP') pkgver() { cd ${_gitname} git describe --long --tags | sed -e 's:^v::;s:\([^-]*-g\):r\1:;s:-:_:g' } prepare() { mkdir -p ${_gitname}/build } build() { cd ${_gitname}/build cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE="None" -DDEV_BUILD="Off" .. make # Make documentation cd docs make doxygen } package_openxcom-hueponik() { pkgdesc="An open-source reimplementation of the famous X-COM game (version with improved scaling option)" depends=('sdl_mixer' 'sdl_gfx' 'sdl_image' 'sdl' 'yaml-cpp' 'libgl' 'gcc-libs' 'glibc' 'hicolor-icon-theme') optdepends=('openxcom-data-steam: pacman-tracked X-COM data files from Steam') provides=('openxcom') conflicts=('openxcom') install="${pkgname}.install" cd ${_gitname}/build make DESTDIR="${pkgdir}" install # Fix manpage location install -Dm644 "${srcdir}/OpenXcom/docs/openxcom.6" "${pkgdir}/usr/share/man/man6/openxcom.6" } package_openxcom-docs-hueponik() { pkgdesc="Documentation for the open-source reimplementation of the famous X-COM game (hueponik-version)" arch=('any') cd ${_gitname}/build/docs install -dm755 "${pkgdir}/usr/share/doc/openxcom/" cp -a html "${pkgdir}/usr/share/doc/openxcom/" }