chore(main, x11): cleanup clvk, clpeak, gl4es build.sh (#12094)

* drop git submodule deinit usage

* drop termux_step_post_get_source for clpeak
  Should be no longer after bumped to 1.1.2 as that was used when
  clpeak was built using git commit.

* drop git reset --hard in favour of git checkout
  Suppose if we want to include patches before termux_step_post_get_source,
  git reset --hard will drop the patches and reset the whole tree.
  Use git checkout instead.
This commit is contained in:
Jia Yuan Lo 2022-09-25 16:57:49 +08:00 committed by GitHub
parent 61d4590785
commit d7b5ee4f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 10 deletions

View File

@ -3,14 +3,8 @@ TERMUX_PKG_DESCRIPTION="A tool which profiles OpenCL devices to find their peak
TERMUX_PKG_LICENSE="Unlicense"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.1.2
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
TERMUX_PKG_SRCURL=https://github.com/krrishnarraj/clpeak.git
TERMUX_PKG_BUILD_DEPENDS="opencl-headers, opencl-clhpp"
TERMUX_PKG_DEPENDS="libc++, ocl-icd"
termux_step_post_get_source() {
git fetch --unshallow
git submodule deinit --force --all
git submodule update --init --recursive
}

View File

@ -6,6 +6,7 @@ _COMMIT=69edc5b3dc0c56f3d67afd8fd0edf1f1292cb310
_COMMIT_DATE=20220924
_COMMIT_TIME=093643
TERMUX_PKG_VERSION="0.0.20220924.093643g69edc5b3"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/kpet/clvk.git
TERMUX_PKG_GIT_BRANCH=main
TERMUX_PKG_BUILD_DEPENDS="vulkan-headers, vulkan-loader-android"
@ -92,8 +93,7 @@ termux_pkg_auto_update() {
termux_step_post_get_source() {
git fetch --unshallow
git reset --hard $_COMMIT
git submodule deinit --force --all
git checkout $_COMMIT
git submodule update --init --recursive
./external/clspv/utils/fetch_sources.py --deps llvm
}

View File

@ -6,6 +6,7 @@ _COMMIT=bb063e81fdcfb1abf991bad84a3f48ef7f4f6be6
_COMMIT_DATE=20220919
_COMMIT_TIME=073102
TERMUX_PKG_VERSION="1.1.4.20220919.073102gbb063e81"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/ptitSeb/gl4es.git
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_DEPENDS="libx11"
@ -62,7 +63,7 @@ termux_pkg_auto_update() {
termux_step_post_get_source() {
git fetch --unshallow
git reset --hard $_COMMIT
git checkout $_COMMIT
}
termux_step_pre_configure() {