diff options
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 35 |
1 files changed, 15 insertions, 20 deletions
@@ -3,19 +3,19 @@ # Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> pkgname=openage-git -pkgver=0.4.1.r739.g3efa24aef +pkgver=0.4.1.r1397.g3acf3d6b4 pkgrel=1 pkgdesc="A free (as in freedom) clone of the Age of Empires II engine" arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64) url="https://openage.sft.mx/" license=(GPL3) -depends=(libepoxy ftgl sdl2_image opusfile eigen - qt5-declarative xdg-utils sdl2 qt5-quickcontrols - libpng libogg python-pillow python-numpy python-toml - python-pygments python-jinja python-lz4 nyan-lang-git) -makedepends=(git cmake cython doxygen vulkan-headers python-graphviz) -optdepends=('ttf-dejavu: for text display, but you can use any font' - vulkan-icd-loader) +depends=(glibc gcc-libs python + libepoxy sdl2_image opusfile + qt6-declarative sdl2 vulkan-icd-loader + libpng libogg python-pillow python-numpy python-toml python-mako + python-pygments python-jinja nyan-lang) #xdg-utils ftgl +makedepends=(git cmake cython doxygen vulkan-headers python-graphviz python-lz4 eigen toml11) +optdepends=('ttf-dejavu: for text display, but you can use any font') provides=(openage) conflicts=(openage) source=("git+https://github.com/SFTtech/openage") @@ -25,20 +25,15 @@ pkgver() { cd "${srcdir}/${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -prepare() { - cd "${srcdir}/${pkgname%-git}" - install -d build -} + build() { - cd "${srcdir}/${pkgname%-git}/build" + cmake -B build -S "openage" -Wno-dev \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=/usr/lib \ - -DCMAKE_BUILD_TYPE=Release - make + cmake --build build } + package() { - cd "${srcdir}/${pkgname%-git}/build" - make DESTDIR="${pkgdir}/" install + DESTDIR="$pkgdir" cmake --install build } |