[arch-commits] Commit in spring/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at gemini.archlinux.org
Mon Jan 24 00:08:21 UTC 2022
Date: Monday, January 24, 2022 @ 00:08:20
Author: svenstaro
Revision: 1114041
upgpkg: spring 106.0-1
Modified:
spring/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++----------------------
1 file changed, 12 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-24 00:08:15 UTC (rev 1114040)
+++ PKGBUILD 2022-01-24 00:08:20 UTC (rev 1114041)
@@ -1,11 +1,10 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
pkgname=spring
-pkgver=105.0.1
-_commit=8581792
-pkgrel=2
+pkgver=106.0
+pkgrel=1
pkgdesc='A free 3D real-time-strategy (RTS) game engine'
arch=('x86_64')
url="http://springrts.com/"
@@ -12,37 +11,28 @@
license=('GPL')
depends=('openal' 'glew' 'boost-libs' 'freetype2' 'devil' 'libvorbis' 'sdl2' 'libunwind'
'libxcursor' 'curl' 'shared-mime-info' 'desktop-file-utils' 'libx11')
-makedepends=('boost' 'cmake' 'zip' 'xz' 'p7zip' 'python' 'jdk8-openjdk' 'mesa' 'git' 'gcc10')
+makedepends=('boost' 'cmake' 'zip' 'xz' 'p7zip' 'python' 'jdk8-openjdk' 'mesa')
optdepends=('python: python-based bots'
'java-runtime: java-based bots')
-source=(git+https://github.com/spring/spring.git#commit=$_commit
- spring-gcc11.patch)
-sha512sums=('SKIP'
- 'b30c666828fd2a1acdd64b505928f7d732479d6985590ea0d8926f3a19dc4b7aa95c80326e72f283d6de1ff17b9763ea0cbc88c71da0d6a77a2db301da9dce49')
+source=("https://springrts.com/dl/buildbot/default/master/106.0/source/spring_106.0_src.tar.gz")
+sha512sums=('d76bec4cc106ed23f09699d702b9d14b76e32f4e34beac2313268c2ef29f6379a970efaee209d4db5dc7c6323d1a47882b10c5c4faa0744087fada227ed91f7b')
-prepare() {
- cd spring
- git submodule update --init
-
- patch -Np1 -i "$srcdir"/spring-gcc11.patch
-}
-
build() {
- cd spring
+ cd spring_$pkgver
- export CXX=g++-10
- cmake . \
+ cmake \
+ -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDATADIR=share/spring \
-DJAVA_HOME=/usr/lib/jvm/java-8-openjdk \
-DCMAKE_SKIP_RPATH=ON
- make
+ make -C build
}
package() {
- cd spring
+ cd spring_$pkgver
- DESTDIR="$pkgdir" make install
+ DESTDIR="$pkgdir" make -C build install
install -d "$pkgdir/etc/spring"
echo '$HOME/.spring' > "$pkgdir/etc/spring/datadir"
More information about the arch-commits
mailing list