[arch-commits] Commit in warzone2100/trunk (PKGBUILD)
Laurent Carlier
lcarlier at archlinux.org
Tue Sep 3 07:56:40 UTC 2019
Date: Tuesday, September 3, 2019 @ 07:56:39
Author: lcarlier
Revision: 507249
upgpkg: warzone2100 3.3.0-1
upstream update 3.3.0
Modified:
warzone2100/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-03 07:56:32 UTC (rev 507248)
+++ PKGBUILD 2019-09-03 07:56:39 UTC (rev 507249)
@@ -2,27 +2,33 @@
# Contributor: Angelo Theodorou <encelo at users.sourceforge.net>
pkgname=warzone2100
-pkgver=3.2.3
-pkgrel=2
+pkgver=3.3.0
+pkgrel=1
pkgdesc="3D realtime strategy game on a future Earth"
url="https://wz2100.net/"
arch=('x86_64')
license=('GPL')
depends=('sdl2' 'glew' 'fribidi' 'openal' 'libvorbis' 'libtheora' 'physfs' 'ttf-dejavu' 'qt5-script' 'xorg-xrandr')
-makedepends=('gawk' 'flex' 'zip' 'unzip' 'asciidoc' 'mesa')
-source=("https://downloads.sourceforge.net/project/warzone2100/archives/unsupported/Warzone2100-3.2/$pkgver/$pkgname-$pkgver.tar.xz")
-sha256sums=('fcab9e860203e7dacda6ee60384da490a9d44aeafc07aa31ff25f9c548be7582')
+makedepends=('gawk' 'flex' 'zip' 'unzip' 'asciidoc' 'mesa' 'cmake')
+source=(https://github.com/Warzone2100/warzone2100/releases/download/${pkgver}/warzone2100-${pkgver}_src.tar.xz)
+sha256sums=('cc48c8128d17a499e833996470d843855389d9fc985c71f05be08901f33116e8')
+prepare() {
+ mkdir -p build
+}
+
build() {
- cd ${pkgname}-${pkgver}
-
- ./configure --prefix=/usr --with-distributor="ArchLinux"
+ cd build
+ cmake ../${pkgname} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DWZ_DISTRIBUTOR="ArchLinux"
make
}
package() {
- cd ${pkgname}-${pkgver}
+ cd build
make DESTDIR=${pkgdir} install
}
More information about the arch-commits
mailing list