Date: Wednesday, March 17, 2021 @ 21:19:54 Author: anthraxx Revision: 894224
archrelease: copy trunk to community-x86_64 Added: emptyepsilon/repos/community-x86_64/PKGBUILD (from rev 894223, emptyepsilon/trunk/PKGBUILD) Deleted: emptyepsilon/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 97 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 49 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-03-17 21:19:47 UTC (rev 894223) +++ PKGBUILD 2021-03-17 21:19:54 UTC (rev 894224) @@ -1,48 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Contributor: Mewp <aur.archlinux....@mewp.pl> - -pkgname=emptyepsilon -pkgver=2020.11.23 -pkgrel=1 -pkgdesc='Open source spaceship bridge simulator' -url='https://github.com/daid/EmptyEpsilon' -arch=('x86_64') -license=('GPL2') -depends=('sfml' 'libglvnd' 'glew' 'libx11' 'libxrandr' 'glibc' 'gcc-libs') -makedepends=('git' 'cmake' 'mesa' 'python') -source=("git+https://github.com/daid/EmptyEpsilon.git#tag=EE-${pkgver}" - "git+https://github.com/daid/SeriousProton.git#tag=EE-${pkgver}") -sha512sums=('SKIP' - 'SKIP') - -prepare() { - # fix shader loading, should be upstreamed - sed 's|new Engine();|chdir(RESOURCE_BASE_DIR); new Engine();|' -i EmptyEpsilon/src/main.cpp -} - -build() { - mkdir -p EmptyEpsilon/build - cd EmptyEpsilon/build - # add cppflags to use fortify - export CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" - # release type is important here to get optimisation flags - # defined in the project's cmake files - cmake -DSERIOUS_PROTON_DIR="${srcdir}/SeriousProton" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DCPACK_PACKAGE_VERSION_MAJOR="$(echo ${pkgver} | cut -d. -f1)" \ - -DCPACK_PACKAGE_VERSION_MINOR="$(echo ${pkgver} | cut -d. -f2)" \ - -DCPACK_PACKAGE_VERSION_PATCH="$(echo ${pkgver} | cut -d. -f3)" \ - -DOpenGL_GL_PREFERENCE=GLVND \ - .. - make -} - -package() { - cd EmptyEpsilon - make -C build DESTDIR="${pkgdir}" install - install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/emptyepsilon" - mv "${pkgdir}/usr/script_reference.html" "${pkgdir}/usr/share/doc/emptyepsilon" -} - -# vim: ts=2 sw=2 et: Copied: emptyepsilon/repos/community-x86_64/PKGBUILD (from rev 894223, emptyepsilon/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-03-17 21:19:54 UTC (rev 894224) @@ -0,0 +1,49 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Mewp <aur.archlinux....@mewp.pl> + +pkgname=emptyepsilon +pkgver=2021.03.16 +pkgrel=1 +pkgdesc='Open source spaceship bridge simulator' +url='https://github.com/daid/EmptyEpsilon' +arch=('x86_64') +license=('GPL2') +depends=('sfml' 'libglvnd' 'glew' 'libx11' 'libxrandr' 'glibc' 'gcc-libs') +makedepends=('git' 'cmake' 'mesa' 'python') +source=("git+https://github.com/daid/EmptyEpsilon.git#tag=EE-${pkgver}" + "git+https://github.com/daid/SeriousProton.git#tag=EE-${pkgver}") +sha512sums=('SKIP' + 'SKIP') + +prepare() { + # fix shader loading, should be upstreamed + sed 's|new Engine();|chdir(RESOURCE_BASE_DIR); new Engine();|' -i EmptyEpsilon/src/main.cpp +} + +build() { + mkdir -p EmptyEpsilon/build + cd EmptyEpsilon/build + # add cppflags to use fortify + export CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" + # release type is important here to get optimisation flags + # defined in the project's cmake files + cmake -DSERIOUS_PROTON_DIR="${srcdir}/SeriousProton" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCPACK_PACKAGE_VERSION_MAJOR="$(echo ${pkgver} | cut -d. -f1)" \ + -DCPACK_PACKAGE_VERSION_MINOR="$(echo ${pkgver} | cut -d. -f2)" \ + -DCPACK_PACKAGE_VERSION_PATCH="$(echo ${pkgver} | cut -d. -f3)" \ + -DOpenGL_GL_PREFERENCE=GLVND \ + .. + make +} + +package() { + cd EmptyEpsilon + make -C build DESTDIR="${pkgdir}" install + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/emptyepsilon" + mv "${pkgdir}"/usr/share/doc/EmptyEpsilon/script_reference.html "${pkgdir}/usr/share/doc/emptyepsilon" + rmdir "${pkgdir}"/usr/share/doc/EmptyEpsilon +} + +# vim: ts=2 sw=2 et: