Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f3604edfa2 | |||
| 977b1f477f | |||
|
838016f473
|
|||
| 1b8342f4cc | |||
|
f93e5a0ce7
|
38
olex2/build
38
olex2/build
@@ -1,15 +1,6 @@
|
|||||||
#!/usr/bin/env modbuild
|
#!/usr/bin/env modbuild
|
||||||
|
|
||||||
pbuild::configure(){
|
pbuild::configure(){
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
pbuild::compile(){
|
|
||||||
:
|
|
||||||
}
|
|
||||||
|
|
||||||
pbuild::install() {
|
|
||||||
|
|
||||||
# Get the OS and architecture
|
# Get the OS and architecture
|
||||||
os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
@@ -20,24 +11,23 @@ pbuild::install() {
|
|||||||
armv7*) arch="arm" ;;
|
armv7*) arch="arm" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
ZIP="${PREFIX}/${P}-${os}${arch}.zip"
|
ZIP="${SRC_DIR}/${P}-${os}${arch}.zip"
|
||||||
|
|
||||||
# Copy the zip archive from the build directory
|
# Copy the zip archive from the build directory
|
||||||
cp -n "${BUILDBLOCK_DIR}/${P}-${os}${arch}.zip" "$ZIP"
|
cp -n "${BUILDBLOCK_DIR}/${P}-${os}${arch}.zip" "$ZIP"
|
||||||
|
|
||||||
# Extract contents directly into PREFIX
|
# Extract contents directly into SRC_DIR
|
||||||
unzip -o -q "$ZIP" -d "${PREFIX}"
|
unzip -o -q "$ZIP" -d "${SRC_DIR}"
|
||||||
|
|
||||||
# Create the bin directory
|
# Clean up the zip file
|
||||||
mkdir -p "${PREFIX}/bin"
|
rm -f "$ZIP"
|
||||||
|
}
|
||||||
# Copy the executable files to the bin directory
|
|
||||||
find "${PREFIX}/${P}" -maxdepth 1 -type f -perm -111 -exec mv {} "${PREFIX}/bin/" \;
|
pbuild::compile(){
|
||||||
|
:
|
||||||
# Move all contents of the zip archive into PREFIX
|
}
|
||||||
mv "${PREFIX}/${P}/"* "${PREFIX}/"
|
|
||||||
rmdir "${PREFIX}/${P}"
|
pbuild::install() {
|
||||||
|
# Move all contents of the zip archive into PREFIX
|
||||||
# Remove zip archive
|
mv "${SRC_DIR}/${P}/"* "${PREFIX}/"
|
||||||
rm "$ZIP"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,3 +16,6 @@ workflow into a single, intuitive package.
|
|||||||
|
|
||||||
# Use software OpenGL explicitly to avoid Vulkan drivers missing error
|
# Use software OpenGL explicitly to avoid Vulkan drivers missing error
|
||||||
setenv LIBGL_ALWAYS_SOFTWARE 1
|
setenv LIBGL_ALWAYS_SOFTWARE 1
|
||||||
|
|
||||||
|
# Because the executable files need to be in the top directory
|
||||||
|
prepend-path PATH $PREFIX
|
||||||
|
|||||||
Binary file not shown.
@@ -9,3 +9,6 @@ xds:
|
|||||||
20250523:
|
20250523:
|
||||||
config:
|
config:
|
||||||
relstage: stable
|
relstage: stable
|
||||||
|
20251103:
|
||||||
|
config:
|
||||||
|
relstage: stable
|
||||||
|
|||||||
Reference in New Issue
Block a user