blob: 81ce0e4cc18a18ee4ad5f01deba0f2895a1c521f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: xaque <xaque at duck dot com>
_stablever=2409.1
_engver=4.2.0
_builddate="20241201"
_debname="o3de_latest.deb"
_binname="o3de-nightly"
pkgname=o3de-nightly-bin
pkgver="${_stablever}_${_builddate}"
pkgrel=1
pkgdesc='Open 3D Engine - An open-source, real-time 3D development engine (Nightly build)'
arch=('x86_64')
license=('APACHE' "MIT")
url='https://o3de.org/'
depends=('clang' 'cmake' 'curl' 'fontconfig' 'gcc-libs' 'glibc' 'glu' 'libffi7' 'libglvnd' 'libxau' 'libx11' 'libxcb' 'libxcrypt-compat' 'libxkbcommon' 'libxkbcommon-x11' 'mesa' 'openexr' 'openssl-1.1' 'qt5-base' 'sdl2' 'zlib')
optdepends=('ninja: Support for multiple build configurations per project')
makedepends=('icoutils')
options=('!strip')
provides=("${_binname}")
install="o3de.install"
source=("open-3d-engine-nightly.desktop"
"https://o3debinaries.org/development/Latest/Linux/${_debname}"
"https://o3debinaries.org/development/Latest/Linux/${_debname}.sha256"
"https://o3debinaries.org/main/Latest/Linux/o3de-releases.gpg"
"LICENSE.txt::https://raw.githubusercontent.com/o3de/o3de/development/LICENSE.txt"
"LICENSE_MIT.txt::https://raw.githubusercontent.com/o3de/o3de/development/LICENSE_MIT.TXT"
"LICENSE_APACHE2.txt::https://raw.githubusercontent.com/o3de/o3de/development/LICENSE_APACHE2.TXT")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'6b38139f1b8c05495312003b050ab6c2e5bcf7e019a8922bf3440a7d7fa561e5'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
# Look at modified date of gpg signature to determine build date
_builddate=$(date -r ${srcdir}/_gpgbuilder "+%Y%m%d")
echo "${_stablever}_${_builddate}"
}
prepare() {
echo -n " Verifying checksum for ${_debname} ..."
_expected=$(cut -d ' ' -f1 ${_debname}.sha256)
_actual=$(sha256sum ${_debname} | cut -d ' ' -f1)
[[ ${_expected} == ${_actual} ]]
echo " Passed"
echo -n " Verifying PGP for ${_debname} ..."
gpgv --keyring "./o3de-releases.gpg" "${_debname}" >/dev/null 2>&1
echo " Passed"
}
package() {
echo -n " Extracting data to /opt/O3DE ."
tar -xzf data.tar.gz -C "${pkgdir}" --checkpoint=.50000
echo " Done"
if [ ! -d "${pkgdir}/opt/O3DE/${_engver}" ]; then
echo "Expected O3DE ${_engver}. PKGBUILD may need to be updated for modified paths with a new major engine version. Aborting." 1>&2
exit 1
fi
# Symlink into /usr/bin
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/O3DE/${_engver}/bin/Linux/profile/Default/o3de" "${pkgdir}/usr/bin/${_binname}"
# Extract .ico and install icons
icotool -x "${pkgdir}"/opt/O3DE/${_engver}/cmake/Platform/Windows/Packaging/product_icon.ico -o .
install -Dm644 "product_icon_1_256x256x64.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${_binname}.png"
iter=2
for size in 128 64 48 32 16; do
install -Dm644 "product_icon_${iter}_${size}x${size}x32.png" \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${_binname}.png"
((iter++))
done
# Install desktop file
install -Dm644 open-3d-engine-nightly.desktop "${pkgdir}"/usr/share/applications/open-3d-engine-nightly.desktop
# Install license files
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
install -Dm644 LICENSE_MIT.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_MIT.txt"
install -Dm644 LICENSE_APACHE2.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_APACHE2.txt"
# Fix warning for mismatched /opt permissions
chmod --reference /opt "${pkgdir}"/opt
}
|