[arch-commits] Commit in emptyepsilon/repos (2 files)
Levente Polyak
anthraxx at archlinux.org
Mon Jul 1 18:30:59 UTC 2019
Date: Monday, July 1, 2019 @ 18:30:59
Author: anthraxx
Revision: 487169
archrelease: copy trunk to community-x86_64
Added:
emptyepsilon/repos/community-x86_64/
emptyepsilon/repos/community-x86_64/PKGBUILD
(from rev 487168, emptyepsilon/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: emptyepsilon/repos/community-x86_64/PKGBUILD (from rev 487168, emptyepsilon/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-07-01 18:30:59 UTC (rev 487169)
@@ -0,0 +1,43 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Mewp <aur.archlinux.org at mewp.pl>
+
+pkgname=emptyepsilon
+pkgver=2019.05.21
+pkgrel=2
+pkgdesc='Open source spaceship bridge simulator'
+url='https://github.com/daid/EmptyEpsilon'
+arch=('x86_64')
+license=('GPL2')
+depends=('sfml' 'libglvnd' 'glew' 'libx11' 'libxrandr')
+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')
+
+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:
More information about the arch-commits
mailing list