mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-10 13:55:33 +00:00
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE="https://github.com/ceu-lang/ceu"
|
|
TERMUX_PKG_DESCRIPTION="The Structured Synchronous Reactive Programming Language Céu"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_SRCURL="git+https://github.com/ceu-lang/ceu"
|
|
TERMUX_PKG_GIT_BRANCH="master"
|
|
_COMMIT="5e0c8d3004ad98658ffe82823ad8303a8d371064"
|
|
TERMUX_PKG_VERSION="2019.07.17"
|
|
TERMUX_PKG_REVISION=2
|
|
TERMUX_PKG_SHA256=bc3417d7a2a568d33ea01097bdfab6d34bb89da4b6191c169140a21cfefa5301
|
|
TERMUX_PKG_AUTO_UPDATE=false
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_BUILD_DEPENDS="lua53, lua53-lpeg"
|
|
TERMUX_PKG_DEPENDS="lua53, lua53-lpeg, liblua53"
|
|
|
|
termux_step_post_get_source() {
|
|
git fetch --unshallow
|
|
git checkout $_COMMIT
|
|
|
|
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
|
|
if [ "$version" != "$TERMUX_PKG_VERSION" ]; then
|
|
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
|
|
echo " is different from what is expected to be: \"$version\""
|
|
return 1
|
|
fi
|
|
|
|
local s=$(find . -type f ! -path '*/.git/*' -print0 | xargs -0 sha256sum | LC_ALL=C sort | sha256sum)
|
|
if [[ "${s}" != "${TERMUX_PKG_SHA256} "* ]]; then
|
|
termux_error_exit "Checksum mismatch for source files."
|
|
fi
|
|
}
|