development/arcan: Build with luajit (lua 5.4 unsupported).

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-10-17 16:28:08 -04:00 committed by Willy Sudiarto Raharjo
parent 5e50ca1375
commit 05180b29c1
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 10 additions and 14 deletions

View file

@ -23,11 +23,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20241017 bkw: Modified by SlackBuilds.org, BUILD=2: build with luajit,
# since it won't build with lua 5.4, and since upstream supports luajit
# via the DISABLE_JIT cmake argument.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=arcan
VERSION=${VERSION:-0.6.1.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -72,11 +76,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
# patch for fix library and man path
patch -p1 < $CWD/gnu-install-dirs-3.diff
@ -88,9 +89,8 @@ patch -p1 < $CWD/gnu-install-dirs-3.diff
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_MANDIR=/usr/man \
-DSTATIC_LIBUVC=OFF \
-DDISABLE_JIT=ON \
-DDISABLE_JIT=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DLUA_INCLUDE_DIR=/usr/include/lua5.1 \
-DVIDEO_PLATFORM=egl-dri \
-DSHMIF_TUI_ACCEL=ON \
-DENABLE_LWA=ON \
@ -100,11 +100,7 @@ patch -p1 < $CWD/gnu-install-dirs-3.diff
make
make install/strip DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGELOG.md COPYING HACKING.md README.md $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/letoram/arcan/archive/0.6.1.1/arcan-0.6.1.1.tar.gz"
MD5SUM="30ba84fe658f4136865756ece8b2e503"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lua tesseract"
REQUIRES="luajit tesseract"
MAINTAINER="Damian Perticone"
EMAIL="mjolnirdam@gmail.com"