-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TESTS] openage-git heinezen fork SFTtech/openage#1569
- Loading branch information
1 parent
1f666ac
commit 3ddd50e
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix | ||
# Contributor: fzerorubigd <fzero@rubi.gd> | ||
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | ||
|
||
pkgname=openage-git_heinezen | ||
pkgver=0.3.0.r3150.gf9abad3e | ||
pkgrel=1 | ||
pkgdesc="A free (as in freedom) clone of the Age of Empires II engine" | ||
arch=(x86_64 i686 pentium4 armv7h aarch64) | ||
url="https://openage.sft.mx/" | ||
license=(GPL3) | ||
depends=(libepoxy opusfile sdl2 sdl2_image | ||
qt6-declarative vulkan-icd-loader | ||
libpng libogg nyan-lang | ||
python-pillow python-numpy python-toml python-mako | ||
python-pygments python-lz4 | ||
|
||
# namcap implicit depends | ||
glibc gcc-libs python gperftools harfbuzz fontconfig freetype2 | ||
qt6-base libglvnd opus ncurses) | ||
makedepends=(git cmake cython doxygen vulkan-headers python-graphviz eigen toml11) | ||
optdepends=('ttf-dejavu: for text display, but you can use any font') | ||
provides=(openage) | ||
conflicts=(openage) | ||
source=("openage-heinezen::git+https://github.com/heinezen/openage.git#branch=fix/modpack-load" | ||
"openage-001.patch::https://github.com/SFTtech/openage/pull/1570/commits/4002db5368e3a0f2908f810b20950bb2b8bb9b59.patch" | ||
"openage-003.patch::https://github.com/SFTtech/openage/pull/1570/commits/52058a1d261cceb3db4c345248ba76d2bc3017eb.patch") | ||
sha256sums=('SKIP' | ||
'db510135ba71b65ece5faf990d3b7d42831b96ddacfa582b8ceaafe11fce00e9' | ||
'b50039e9b5f2ac6aec59a6fd9b5143d3506256fcea49b549ed8627602b229d49') | ||
|
||
prepare() { | ||
cd openage-heinezen | ||
patch -Np1 -i ../openage-001.patch | ||
patch -Np1 -i ../openage-003.patch | ||
} | ||
|
||
pkgver() { | ||
cd openage-heinezen | ||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
} | ||
|
||
build() { | ||
cmake -B build -S "openage-heinezen" -Wno-dev \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DBUILD_TESTING=ON | ||
|
||
cmake --build build | ||
} | ||
|
||
check() { | ||
ctest --test-dir build --output-on-failure | ||
|
||
cd build | ||
./run.py test --run-all-tests | ||
} | ||
|
||
package() { | ||
DESTDIR="$pkgdir" cmake --install build | ||
} |