summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 15:36:51 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 15:36:51 -0700
commit17e41dceae4135bbe03f9d8f9a2976bec513b8ea (patch)
tree35e9ac8a1c90cacfb02aad216b41a6cc25fae95e
downloadnaev-17e41dceae4135bbe03f9d8f9a2976bec513b8ea.tar.xz
Initial commit
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..e058be8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
+# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor (Arch): Johan Rehnberg <cleanrock@gmail.com>
+
+# # I maintain this because:
+# Arch version lacks additional optimization and hardening flags
+
+pkgname=naev
+pkgver=0.7.0
+pkgrel=2.2
+pkgdesc='2D action/rpg space game'
+arch=('x86_64')
+url="http://sourceforge.net/projects/naev/"
+license=('GPL3')
+depends=('glu' 'openal' 'libvorbis' 'sdl2' 'sdl2_image' 'sdl2_mixer' 'libgl' 'libxml2' 'freetype2' 'libpng' 'libzip' 'luajit')
+makedepends=('freeglut' 'zip')
+source=("https://github.com/naev/naev/archive/${pkgname}-${pkgver}.tar.gz")
+md5sums=('c07e24c2e87d08fdb73e666fb4e59981')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgname-$pkgver"
+
+ export CFLAGS="$CFLAGS -O3 -flto=4 -fPIE"
+ export CXXFLAGS="$CXXFLAGS -O3 -flto=4 -fPIE"
+ export LDFLAGS="$LDFLAGS,-pie"
+
+ ./autogen.sh
+ ./configure --prefix=/usr --disable-debug --disable-shave --with-ndata-path=/usr/share/naev/ndata
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+}