summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDarren Wu2019-02-15 17:45:30 +0800
committerDarren Wu2019-02-15 17:45:30 +0800
commit59dbbfde1a08bf7da0fb108cf3b9a72583a9048b (patch)
tree040b53d107b56fcb7a013b811b62829243a54ae7 /PKGBUILD
parentb3a0711ecda11e3a6fd394b99983d920a114a38f (diff)
downloadaur-pioneer.tar.gz
Version update 20180203-1 -> 20190203-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD100
1 files changed, 73 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4cdb7b97298..878d943d67f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,86 @@
-# Maintainer: Tarn Burton <twburton at gmail dot com>
+# Maintainer: Darren Wu <$(base64 --decode <<<'ZGFycmVuMTk5NzA4MTBAZ21haWwuY29tCg==')>
+# Contributor: Tarn Burton <twburton at gmail dot com>
+
pkgname='pioneer'
-pkgver=20180203
+pkgver=20190203
pkgrel=1
pkgdesc="A game of lonely space adventure"
-arch=('i686' 'x86_64')
+arch=('x86_64') # 'i686' untested
url="https://github.com/pioneerspacesim/pioneer"
-license=('GPL')
+license=('GPL3')
provides=('pioneer')
conflicts=('pioneer-bin' 'pioneer-git')
-depends=('libsigc++' 'sdl2_image' 'freetype2' 'libvorbis' 'assimp' 'hicolor-icon-theme')
-makedepends=('naturaldocs')
-source=("$pkgname-$pkgver.tar.gz::http://github.com/pioneerspacesim/pioneer/archive/$pkgver.tar.gz" 'pioneer.desktop')
-sha256sums=('19aa89e8ec0221b937b9279e0d4897b3016e0ce80858d03600d3e80cd7daa907'
- '31cc3f86dbab4dea44fc61312cbba30dc6d267a3d844bbb866fd2156c29032ef')
+depends=(
+ 'assimp' # libassimp-dev >= 3.2
+ 'curl' # libcurl-dev
+ 'freetype2' # libfreetype6-dev
+ 'glew' # USE_SYSTEM_LIBGLEW include <GL/glew.h>
+ 'hicolor-icon-theme'
+ 'libpng' # libpng-dev
+ 'libsigc++' # libsigc++-dev libsigc++-2.0-dev
+ 'libvorbis' # libvorbis-dev
+ 'lua52' # USE_SYSTEM_LIBLUA
+ 'mesa' # mesa-common-dev
+ 'sdl2' # libsdl2-dev
+ 'sdl2_image' # libsdl2-image-dev
+)
+makedepends=(
+ 'automake' # automake
+ 'naturaldocs'
+ 'pkgconf' # pkg-config
+ 'cmake'
+)
+source=("$pkgname-$pkgver.tar.gz::http://github.com/pioneerspacesim/pioneer/archive/$pkgver.tar.gz")
+sha256sums=('e526f1659ae321f45b997c0245acecbf9c4cf2122b025ab8db1090f1b9804f5e')
build() {
- cd "$pkgname-$pkgver"
- export PIONEER_DATA_DIR=/usr/share/pioneer
- ./bootstrap
- ./configure CXXFLAGS='-fPIC' --prefix=/usr
- make
- make codedoc
+
+ # Autotools support is dropped
+ # https://github.com/pioneerspacesim/pioneer/issues/4525#issuecomment-460067597
+
+ # Build codedoc
+ # cd "$srcdir/$pkgname-$pkgver"
+ # autoreconf -fvi
+ # ./configure
+ # make codedoc
+
+ # Build
+ mkdir "$srcdir/$pkgname-$pkgver/build"
+ cd "$srcdir/$pkgname-$pkgver/build"
+ # cmake . -LH
+ # cmake . -LAH
+ cmake \
+ -D CMAKE_INSTALL_PREFIX:PATH=/usr \
+ -D PIONEER_DATA_DIR:PATH=/usr/share/pioneer/ \
+ -D USE_SYSTEM_LIBGLEW:BOOL=ON \
+ -D USE_SYSTEM_LIBLUA:BOOL=ON \
+ -G 'Unix Makefiles' \
+ -Wno-dev \
+ -Wdeprecated \
+ --warn-uninitialized \
+ --warn-unused-vars \
+ "$srcdir/$pkgname-$pkgver"
+ time make
+ # Precompile all models into *.sgm files to alleviate long startup times
+ ./modelcompiler -batch inplace
+
+ # Run
+ # cd "$srcdir/$pkgname-$pkgver/build"; ./pioneer # Could not load shaders/opengl/vtxColor.vert
+ # cd "$srcdir/$pkgname-$pkgver"; ./build/pioneer
}
package() {
- cd "$pkgname-$pkgver"
- export PIONEER_DATA_DIR=/usr/share/pioneer
+
+ cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="$pkgdir" install
- install -Dm644 "$srcdir/pioneer.desktop" "$pkgdir/usr/share/applications/pioneer.desktop"
- for icon in application-icon/pngs/*
- do
- if [[ $icon =~ pioneer-([0-9]+x[0-9]+).png ]]; then
- install -Dm644 $icon "$pkgdir/usr/share/icons/hicolor/${BASH_REMATCH[1]}/apps/pioneer.png"
- fi
- done
- install -Dm644 "application-icon/badge-enlarged-text.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/pioneer.svg"
- mkdir -p "$pkgdir/usr/share/doc/pioneer"
- cp -R codedoc/* "$pkgdir/usr/share/doc/pioneer"
+
+ # appdata
+ mkdir --parents "$pkgdir/usr/share/metainfo"
+ mv "$pkgdir/usr/share/appdata/net.pioneerspacesim.Pioneer.appdata.xml" "$pkgdir/usr/share/metainfo/net.pioneerspacesim.Pioneer.appdata.xml"
+ rmdir "$pkgdir/usr/share/appdata"
+
+ # codedoc
+ # mkdir --parents "$pkgdir/usr/share/doc/pioneer"
+ # cp --recursive "$srcdir/$pkgname-$pkgver"/codedoc/* "$pkgdir/usr/share/doc/pioneer/"
+
}