[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Mon Jul 1 18:30:44 UTC 2019
Date: Monday, July 1, 2019 @ 18:30:44
Author: anthraxx
Revision: 487167
ddpkg: emptyepsilon 2019.05.21-2
Added:
emptyepsilon/
emptyepsilon/repos/
emptyepsilon/trunk/
emptyepsilon/trunk/PKGBUILD
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Added: emptyepsilon/trunk/PKGBUILD
===================================================================
--- emptyepsilon/trunk/PKGBUILD (rev 0)
+++ emptyepsilon/trunk/PKGBUILD 2019-07-01 18:30:44 UTC (rev 487167)
@@ -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