1 # Template file for 'arcan'
7 short_desc="Combined display server, multimedia framework and game engine"
8 maintainer="Piraty <piraty1@inbox.ru>"
9 license="GPL-2.0-or-later"
10 homepage="https://arcan-fe.com/"
12 distfiles="https://github.com/letoram/${pkgname}/archive/${version}.tar.gz
13 https://github.com/letoram/openal/archive/${_versionOpenal}.tar.gz>openal_arcan.${_versionOpenal}.tar.gz"
14 checksum="b42d765610e9e791ab196a904758f42446ea116b1e3bc2a6ca788ebe494f5c55
15 3a50a87c05b67c466a868cc77f8dc7f9cfc9466aeeafcd823daca0d108c504da"
17 # the _lwa part of the build relies on a patched openAL implementation
18 # that is statically linked
20 only_for_archs="i686 i686-musl x86_64 x86_64-musl"
22 configure_args=" -DDISTR_TAG='Void Linux'
23 -DCMAKE_BUILD_TYPE=Release -DBUILD_TAG='release' -DSTATIC_SQLITE3=Off
24 -DSTATIC_OPENAL=Off -DSTATIC_FREETYPE=Off
25 -DVIDEO_PLATFORM=egl-dri -DENABLE_SIMD=On -DENABLE_LTO=Off"
27 makedepends="LuaJIT-devel ffmpeg-devel harfbuzz-devel liblzma-devel
28 libopenal-devel libusb-devel libvncserver-devel libxkbcommon-devel sqlite-devel
29 tesseract-ocr-devel vlc-devel"
31 build_options="tesseract"
32 desc_option_tesseract="Enable support for OCR via tesseract"
33 build_options_default="tesseract"
36 # provide patched openAL
37 ln -s ${XBPS_BUILDDIR}/openal-${_versionOpenal} ${XBPS_BUILDDIR}/arcan-${version}/external/git/openal
41 # need suid for drmMaster, dropped immediately after open+master
42 chmod u+s ${DESTDIR}/usr/bin/arcan
45 arcan-devel_package() {
46 short_desc+=" - development files"
47 depends="${sourcepkg}>=${version}_${revision}"
51 vmove usr/lib/pkgconfig