packages/lang/lua/luajit2/test-version.sh

14 lines
236 B
Bash

#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in #luajit2 use build number at -v but releases are named by date
luajit2)
luajit2 -v 2>&1 | grep -F "LuaJIT 2.1."
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac