summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Theodorou2021-07-27 23:28:23 +0200
committerAngelo Theodorou2021-07-27 23:29:28 +0200
commitd8bc2db0dceebda751138831b2a93763c0f34627 (patch)
tree2c3076c77e0d23008baa02ee9ea1f80808c0fd1a
parent0df1d1e8c3d764fed68a85425b82f0014070fdaa (diff)
downloadaur-eternallands.tar.gz
Use CMake to build the game
- Remove pkgconf from the makedepends array - Add cmake to the makedepends array - Rename the "version" custom variable to "_version"
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD20
-rw-r--r--eternallands.changelog8
3 files changed, 20 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c70178cbcd0..4d4d41c70ae 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = eternallands
pkgdesc = A free 3D MMORPG game with thousands of on-line players
pkgver = 1.9.5.9
- pkgrel = 1
+ pkgrel = 2
url = http://www.eternal-lands.com/
changelog = eternallands.changelog
arch = i686
arch = x86_64
license = custom
makedepends = unzip
- makedepends = pkgconf
+ makedepends = cmake
depends = sdl2_net
depends = sdl2_image
depends = sdl2_ttf
@@ -25,4 +25,3 @@ pkgbase = eternallands
md5sums = 82c0b5601faed923fb30d01906e25ca3
pkgname = eternallands
-
diff --git a/PKGBUILD b/PKGBUILD
index 6adccc02d85..430d259cb7e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,43 +6,43 @@
pkgname=eternallands
pkgver=1.9.5.9
-version=${pkgver}-1
-pkgrel=1
+_version=${pkgver}-1
+pkgrel=2
pkgdesc="A free 3D MMORPG game with thousands of on-line players"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.eternal-lands.com/"
depends=('sdl2_net' 'sdl2_image' 'sdl2_ttf' 'openal' 'cal3d' 'libvorbis' 'glu')
-makedepends=('unzip' 'pkgconf')
+makedepends=('unzip' 'cmake')
optdepends=('zenity: to use the launch script' 'kdialog: to use the launch script')
options=('!emptydirs')
changelog=eternallands.changelog
-source=("https://github.com/raduprv/Eternal-Lands/archive/refs/tags/${version}.tar.gz" "https://github.com/raduprv/Eternal-Lands/releases/download/${version}/eternallands-data_${version}.zip")
+source=("https://github.com/raduprv/Eternal-Lands/archive/refs/tags/${_version}.tar.gz" "https://github.com/raduprv/Eternal-Lands/releases/download/${_version}/eternallands-data_${_version}.zip")
md5sums=('745a75f442d6afea31df5d388450082a' '82c0b5601faed923fb30d01906e25ca3')
build()
{
- cd ${srcdir}/Eternal-Lands-${version}
+ cd ${srcdir}/Eternal-Lands-${_version}
sed -i "s|/usr/games/|/usr/bin/|" pkgfiles/eternallands
sed -i "s|/usr/share/games/EternalLands/|/usr/share/eternallands/|" pkgfiles/eternallands
sed -i "s|#data_dir = /usr/share/games/EternalLands|#data_dir = /usr/share/eternallands|" pkgfiles/eternallands
sed -i "s|#data_dir = \\\/usr\\\/share\\\/games\\\/EternalLands|#data_dir = \\\/usr\\\/share\\\/eternallands|" pkgfiles/eternallands
- rm -f gen_git_version
- make -f Makefile.linux release
+ cmake -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=${pkgdir}/usr/ -D LOCAL_NLOHMANN_JSON=On
+ make -C build
}
package() {
- cd ${srcdir}/Eternal-Lands-${version}
+ cd ${srcdir}/Eternal-Lands-${_version}/build
+ make install
- mkdir -p "${pkgdir}/usr/bin"
+ cd ${srcdir}/Eternal-Lands-${_version}
mkdir -p "${pkgdir}/usr/share/man/man6"
mkdir -p "${pkgdir}/usr/share/pixmaps"
mkdir -p "${pkgdir}/usr/share/applications"
mkdir -p "${pkgdir}/usr/share/licenses/eternallands/"
mkdir -p "${pkgdir}/usr/share/eternallands"
- install -m755 el.x86.linux.bin "${pkgdir}/usr/bin/"
install -m755 pkgfiles/eternallands "${pkgdir}/usr/bin/"
install -m644 pkgfiles/eternallands.6 "${pkgdir}/usr/share/man/man6"
install -m644 pkgfiles/el.linux.bin.6 "${pkgdir}/usr/share/man/man6"
diff --git a/eternallands.changelog b/eternallands.changelog
index 95c43186567..ea3e633dc37 100644
--- a/eternallands.changelog
+++ b/eternallands.changelog
@@ -1,3 +1,11 @@
+2021-07-27 Angelo "Encelo" Theodorou <encelo@users.sourceforge.net>
+
+ * PKGBUILD:
+ Using CMake to build the game
+ Removed pkgconf from the makedepends array
+ Added cmake to the makedepends array
+ Renamed "version" custom variable to "_version"
+
2021-04-14 Angelo "Encelo" Theodorou <encelo@users.sourceforge.net>
* PKGBUILD: