blob: 1f3558713153264f26aa37d161041e337171496f (
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
|
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
pkgdesc='Game Engine meets a Display Server meets a Multimedia Framework'
pkgname='arcan-git'
pkgver=r4353.ad9686c7
pkgrel=2
license=('GPL2' 'LGPL' 'custom:BSD')
arch=(aarch64 'x86_64')
depends=('freetype2' 'harfbuzz' 'harfbuzz-icu' 'mesa' 'luajit' 'sqlite'
'libxkbcommon' 'libvncserver' 'libusb' 'openal' 'ffmpeg' 'apr' 'wayland-protocols')
makedepends=('cmake' 'ruby' 'git')
provides=('arcan')
conflicts=('arcan')
url='https://arcan-fe.com/'
source=("${pkgname}::git+https://github.com/letoram/arcan.git"
"0001-fix-build-werror.patch")
sha512sums=('SKIP' 'SKIP')
pkgver () {
cd "${pkgname}"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare () {
cd "${srcdir}"
patch -Np1 -i 0001-fix-build-werror.patch
}
build () {
pushd "${pkgname}/doc" &> /dev/null
ruby docgen.rb mangen
popd &> /dev/null
rm -rf "${pkgname}/build"
mkdir "${pkgname}/build"
cd "${pkgname}/build"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DVIDEO_PLATFORM=egl-dri \
-DHYBRID_SDL=ON \
-DENABLE_LWA=ON \
-DENABLE_LTO=ON \
../src
make
}
package () {
cd "${pkgname}/build"
DESTDIR="${pkgdir}" make install
# Fix location of manpages.
if [[ -d ${pkgdir}/usr/man ]] ; then
mv "${pkgdir}/usr/man" "${pkgdir}/usr/share"
fi
# Ditto for CMake files.
if [[ -d ${pkgdir}/usr/CMake ]] ; then
for path in "${pkgdir}/usr/CMake"/*.cmake ; do
local basename=${path##*/}
if [[ ${basename} = *-config.cmake ]] ; then
install -vDm644 "${path}" \
"${pkgdir}/usr/share/cmake/${basename:0:-13}/${basename}"
elif [[ ${basename} = *Config.cmake ]] ; then
install -vDm644 "${path}" \
"${pkgdir}/usr/share/cmake/${basename:0:-12}/${basename}"
fi
done
rm -rf "${pkgdir}/usr/CMake"
fi
}
|