diff options
author | Daniel Bermond | 2023-06-17 18:25:18 -0300 |
---|---|---|
committer | Daniel Bermond | 2023-06-17 18:25:18 -0300 |
commit | 813630c7e8d730ecb78950cd7619010518f2e067 (patch) | |
tree | 403ab9851ea110ed79d3d3762e77c1cce5664590 /PKGBUILD | |
parent | 35efd929cd46191423bda06c3faf9c86c2853cc7 (diff) | |
download | aur-megaglest-git.tar.gz |
Update dependencies, pkgver() and cmake commands
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -1,14 +1,14 @@ # Maintainer : Daniel Bermond <dbermond@archlinux.org> pkgname=megaglest-git -pkgver=3.13.0.r175.g8cdca11c4 +pkgver=3.13.0.r267.g231c639c7 pkgrel=1 pkgdesc='Fork of Glest, a 3D real-time strategy game in a fantastic world (git version)' arch=('x86_64') url='https://megaglest.org/' license=('GPL3') -depends=('curl' 'xerces-c' 'sdl2' 'libvorbis' 'openal' 'libgl' 'lua51' 'icu' 'ftgl' - 'glew' 'libircclient' 'miniupnpc' 'wxgtk3' 'glu' 'libx11' 'libminiupnpc.so' +depends=('curl' 'xerces-c' 'sdl2' 'libvorbis' 'openal' 'libgl' 'lua51' 'icu' 'ftgl' 'glew' + 'libircclient' 'miniupnpc' 'wxwidgets-gtk3' 'glu' 'libx11' 'libminiupnpc.so' 'megaglest-data-git') makedepends=('git' 'ftjam' 'cmake' 'mesa') provides=('megaglest') @@ -17,23 +17,24 @@ source=('git+https://github.com/MegaGlest/megaglest-source.git') sha256sums=('SKIP') pkgver() { - git -C megaglest-source describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' + git -C megaglest-source describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' } build() { cmake -B build -S megaglest-source \ + -G 'Unix Makefiles' \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ - -DCMAKE_CXX_FLAGS="-lX11 ${CXXFLAGS}" \ - -DWANT_GIT_STAMP='0' \ - -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-gtk3' \ + -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS} -lX11" \ + -DWANT_GIT_STAMP='1' \ + -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config' \ -DWANT_USE_VLC:BOOL='OFF' \ -Wno-dev - # use 'maje -j1' if xvfb is installed on your system to prevent errors (will build manpages) - make -C build + # use '-j1' if xvfb is installed on your system to prevent errors (will build manpages) + cmake --build build } package() { - make -C build DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build } |