blob: 71ae9077dc7e1c5333415f1d72f6125c6a998553 (
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
|
# Maintainer : MorsMortium <morsmortium@disroot.org>
_pkgname=dry
pkgname=${_pkgname}-git
pkgver=r221.a5f867a
pkgrel=1
pkgdesc='Dry – a bare bones fork of Urho3D – is a FOSS cross-platform 2D and 3D game engine implemented in C++'
arch=('x86_64')
url="https://gitlab.com/luckeyproductions/${_pkgname}"
license=('MIT')
depends=('xorg-server')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
makedepends=('git' 'cmake' 'bash')
sha512sums=('SKIP')
source=("${pkgname}::git+${url}.git")
OPTIONS=(!strip)
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
./script/cmake_generic.sh ./ -D VIDEO_WAYLAND=OFF -D DRY_SAMPLES=0
make
}
package() {
cd "${srcdir}/${pkgname}"
mkdir -p ${pkgdir}/opt/dry
cp -R "${srcdir}/${pkgname}/." ${pkgdir}/opt/dry/
rm -r ${pkgdir}/opt/dry/Docs ${pkgdir}/opt/dry/script \
${pkgdir}/opt/dry/CMake ${pkgdir}/opt/dry/CMakeCache.txt \
${pkgdir}/opt/dry/quick.sh ${pkgdir}/opt/dry/.git* \
find ${pkgdir}/opt/dry -name "*.cmake" -type f -delete
find ${pkgdir}/opt/dry -name "*.c" -type f -delete
find ${pkgdir}/opt/dry -name "*.cpp" -type f -delete
find ${pkgdir}/opt/dry -name "Makefile" -type f -delete
find ${pkgdir}/opt/dry -name "CMakeFiles" -type d -exec rm -r {} +
find ${pkgdir}/opt/dry -name "CMakeLists.txt" -type f -delete
for File in $(find ${pkgdir}/opt/dry/include/Dry)
do
if [ -L "$File" ]
then
if [ -d "$File" ]
then
RealPath=`realpath "$File"`
rm $File
mkdir $File
mv "$RealPath"/* "$File"/
else
if [[ $File == */opt/dry/include/Dry/ThirdParty/SDL/SDL_config.h ]]
then
rm "$File"
ln -s ./generated/SDL_config.h "$File"
else
mv `realpath "$File"` "$File"
fi
fi
fi
done
rm -r ${pkgdir}/opt/dry/Source
}
|