python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / arcan / template
blobd8b7394b62fd59e6455fea6b9a4d276fe91f9c44
1 # Template file for 'arcan'
2 pkgname=arcan
3 version=0.5.4.6
4 revision=2
5 build_style=cmake
6 build_wrksrc=src
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/"
11 _versionOpenal=0.5.4
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"
35 post_extract() {
36         # provide patched openAL
37         ln -s ${XBPS_BUILDDIR}/openal-${_versionOpenal} ${XBPS_BUILDDIR}/arcan-${version}/external/git/openal
40 post_install() {
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}"
48         pkg_install() {
49                 vmove "usr/lib/*.so"
50                 vmove "usr/lib/*.a"
51                 vmove usr/lib/pkgconfig
52                 vmove usr/include
53         }