Date: Friday, October 21, 2022 @ 19:03:20
Author: felixonmars
Revision: 1333243
archrelease: copy trunk to community-staging-x86_64
Added:
0ad/repos/community-staging-x86_64/
0ad/repos/community-staging-x86_64/PKGBUILD
(from rev 1333242, 0ad/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: 0ad/repos/community-staging-x86_64/PKGBUILD (from rev 1333242,
0ad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-10-21 19:03:20 UTC (rev 1333243)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: t3ddy <t3ddy1988 "at" gmail {dot} com>
+# Contributor: Adrián Chaves Fernández (Gallaecio) <[email protected]>
+pkgname=0ad
+pkgver=a26
+_pkgver=0.0.26-alpha
+pkgrel=2
+pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
+arch=('x86_64')
+url="http://play0ad.com/"
+license=('GPL2' 'CCPL')
+depends=('0ad-data' 'binutils' 'boost-libs' 'curl' 'enet' 'libogg' 'libpng'
'libvorbis'
+ 'libxml2' 'openal' 'sdl2' 'wxwidgets-gtk3' 'zlib' 'libgl' 'glu' 'fmt'
+ 'gloox' 'miniupnpc' 'libminiupnpc.so' 'icu' 'nspr' 'libsodium')
+makedepends=('boost' 'cmake' 'mesa' 'zip' 'libsm' 'rust' 'python' 'clang')
+options=('!lto') # breaks spidermonkey linking (https://bugs.gentoo.org/746947)
+source=("https://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz")
+sha512sums=('aaf647d5d8454c244015d2a198beeaaebc571a5bc96446f3acff8dbd05f9843029c500bf4162651a5e1fcdb42bd5fb5b4f5c512c78372479fbd8565dd093f272')
+
+build() {
+ cd "$pkgname-$_pkgver/build/workspaces"
+
+ ./update-workspaces.sh -j$(nproc) \
+ --without-pch \
+ --bindir=/usr/bin \
+ --libdir=/usr/lib/0ad \
+ --datadir=/usr/share/0ad/data
+
+ cd gcc
+
+ VERBOSE=1 make
+}
+
+package() {
+ cd "$pkgname-$_pkgver"
+ install -d "${pkgdir}"/usr/{bin,lib/0ad,share/"${pkgname}"/data}
+ install -Dm755 binaries/system/pyrogenesis "${pkgdir}/usr/bin"
+ install -Dm755 binaries/system/*.so "${pkgdir}/usr/lib/0ad"
+
+ cp -r binaries/data/l10n/ "${pkgdir}/usr/share/${pkgname}/data/"
+
+ install -Dm755 build/resources/${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 build/resources/${pkgname}.desktop
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 build/resources/${pkgname}.png
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+}