# Maintainer: Jonas Heinrich # Contributor: Jonas Heinrich pkgname=quakejs-git pkgver=1 pkgrel=1 pkgdesc="Port of ioquake3 to JavaScript with the help of Emscripten" arch=('any') url="https://github.com/inolen/quakejs" license=('unknown') depends=('nodejs') makedepends=('npm') options=('!strip') source=('git+https://github.com/inolen/quakejs.git' 'server.cfg' 'web.json') sha512sums=('SKIP' 'f9fc1684e9a2e3f992a59dad204b9deea8a9878953ff9b80dd1fb0ffde9f1d12efdb462a87b3c94b7fcfdef630911eddf5743ec7c7df445e6749cc7d163ce86a' '41ce94ad41123ae4892089f82569b480af926702b482707f96728eb4fe6f50b69e84827f80c3014eab343f756f2fba5a0c2e6b7720f094e04bef6009589005da') build() { cd "${srcdir}/quakejs" git submodule update --init npm install --cache "${srcdir}/npm-cache" } package() { install -d "${pkgdir}/etc/webapps/quakejs" install -d "${pkgdir}/usr/share/webapps" cp -ra "${srcdir}/quakejs" "${pkgdir}/usr/share/webapps/quakejs" }