Skip to content

Instantly share code, notes, and snippets.

@maxpoulin64
Last active April 12, 2017 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxpoulin64/1d3a284227090202746bcb5c3bfeeb49 to your computer and use it in GitHub Desktop.
Save maxpoulin64/1d3a284227090202746bcb5c3bfeeb49 to your computer and use it in GitHub Desktop.
Fixed PKGBUILD for unigine-superposition
# based on unigine-valley by ajs124 and meyithi
pkgname=unigine-superposition
_pkgname=Unigine_Superposition
pkgver=1.0
pkgrel=1
pkgdesc="Interactive Unigine Benchmark: walk through a lab of a lone professor"
arch=('i686' 'x86_64')
url="http://www.unigine.com"
license=('custom:UNIGINE Engine')
depends=('libgl' 'gcc-libs' 'libxrandr' 'libxinerama' 'fontconfig')
optdepends=('openal: sound support')
source=("https://assets.unigine.com/d/"${_pkgname}"-"${pkgver}".run")
sha512sums=('1aa51b04381bedb0d3519f1ef90dcc77607b04b124ea3577dcc38eb8e609e5e8c2d21de4b4b19ca5d92542856d152fcec88d19d5b86fca307aa8f7e84f5b28b1')
PKGEXT=.pkg.tar
[ "${CARCH}" = "i686" ] && _arch=x86
[ "${CARCH}" = "x86_64" ] && _arch=x64
build() {
sh "${_pkgname}"-"${pkgver}".run --target "${pkgname}" --noexec
}
package() {
cd "${srcdir}"/"${pkgname}"
install -d "${pkgdir}/opt/${pkgname}"
cp -R * "${pkgdir}"/opt/"${pkgname}"/
install -d "${pkgdir}/usr/bin"
ln -s "/opt/${pkgname}/bin/launcher" "${pkgdir}/usr/bin/unigine-superposition"
install -Dm644 docs/Superposition_Benchmark_End-User_License_Agreement.pdf "${pkgdir}"/usr/share/licenses/"${pkgname}"/license
install -Dm644 docs/Superposition_Benchmark_User_Manual.pdf "${pkgdir}"/usr/share/doc/"${pkgname}"/User_Manual.pdf
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment