blob: 2df693701be2e42b8d8e9d0bd7bf1b2a9598c1a2 (
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
|
# Maintainer: Sam Collier <samcollier916@gmail.com>
pkgname=ue4-docker-git
pkgver=0.0.116.r6.g2a1e922
pkgrel=1
pkgdesc="Windows and Linux containers for Unreal Engine (git version)"
arch=('any')
url="https://github.com/adamrehn/ue4-docker"
license=('MIT')
depends=(
'python>=3.8'
'python-colorama'
'python-docker>=6.1.0'
'python-humanfriendly'
'python-jinja>=2.11.3'
'python-packaging>=19.1'
'python-psutil'
'python-termcolor'
'docker'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools>=61'
)
optdepends=(
'nvidia-container-toolkit: for GPU support in Linux containers'
'ue4cli-git: for additional UE4 command-line tools'
)
provides=("ue4-docker=${pkgver}")
conflicts=('ue4-docker')
source=("${pkgname}::git+https://github.com/adamrehn/ue4-docker.git#branch=master")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname%-git}/README.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
if [ -d "docs" ]; then
cp -r docs "$pkgdir/usr/share/doc/${pkgname%-git}/"
fi
}
|