Skip to content

Commit

Permalink
[TESTS] openage-git heinezen fork SFTtech/openage#1569
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLolix committed Oct 10, 2023
1 parent 1f666ac commit 3ddd50e
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions zz_tests/openage-git_heinezen/PKGBUILD
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
}

0 comments on commit 3ddd50e

Please sign in to comment.