-
-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,438 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ G_AGDUG | |
G_AG_CHECK_INSTALL_PREREQ "${adeps_build[@]}" | ||
|
||
# Build libSDL2 | ||
v_sdl='2.0.22' | ||
v_sdl='2.24.1' | ||
if [[ ! -d /tmp/SDL2-$v_sdl ]] | ||
then | ||
G_DIETPI-NOTIFY 2 "Building libSDL2 version \e[33m$v_sdl" | ||
|
@@ -97,7 +97,7 @@ else | |
fi | ||
|
||
# Build Amiberry | ||
v_ami='5.3' | ||
v_ami='5.4' | ||
G_DIETPI-NOTIFY 2 "Building Amiberry version \e[33m$v_ami\e[90m for platform: \e[33m$PLATFORM" | ||
[[ -d /tmp/amiberry-$v_ami ]] && G_EXEC rm -R "/tmp/amiberry-$v_ami" | ||
G_EXEC cd /tmp | ||
|
@@ -186,7 +186,7 @@ grep -q 'raspbian' /etc/os-release && DEPS_APT_VERSIONED=$(sed 's/+rp[it][0-9]\+ | |
# - control | ||
cat << _EOF_ > "$DIR/DEBIAN/control" | ||
Package: amiberry | ||
Version: $v_ami-dietpi4 | ||
Version: $v_ami-dietpi1 | ||
Architecture: $(dpkg --print-architecture) | ||
Maintainer: MichaIng <[email protected]> | ||
Date: $(date -u '+%a, %d %b %Y %T %z') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
#!/bin/bash | ||
{ | ||
. /boot/dietpi/func/dietpi-globals || exit 1 | ||
if [[ -f '/boot/dietpi/func/dietpi-globals' ]] | ||
then | ||
. /boot/dietpi/func/dietpi-globals || exit 1 | ||
else | ||
curl -sSf "https://raw.githubusercontent.com/${G_GITOWNER:-MichaIng}/DietPi/${G_GITBRANCH:-master}/dietpi/func/dietpi-globals" -o /tmp/dietpi-globals || exit 1 | ||
# shellcheck disable=SC1091 | ||
. /tmp/dietpi-globals || exit 1 | ||
G_EXEC_NOHALT=1 G_EXEC rm /tmp/dietpi-globals | ||
fi | ||
|
||
G_EXEC mkdir -p raspberrypi-sys-mods/{DEBIAN,lib/udev/rules.d,usr/{lib,share/doc}/raspberrypi-sys-mods} | ||
|
||
|
@@ -51,7 +60,7 @@ while :; do | |
if grep -q "alias $SUBSYSTEM:$comp " $ALIASES; then | ||
modprobe "$SUBSYSTEM:$comp" && exit 0 | ||
fi | ||
let n="$n + 1" | ||
n=$(expr $n + 1) | ||
done | ||
modprobe "$MODALIAS" || modprobe "of:N${OF_NAME}T<NULL>C$OF_COMPATIBLE_0" | ||
_EOF_ | ||
|
@@ -132,7 +141,7 @@ find raspberrypi-sys-mods ! \( -path raspberrypi-sys-mods/DEBIAN -prune \) -type | |
|
||
cat << _EOF_ > raspberrypi-sys-mods/DEBIAN/control | ||
Package: raspberrypi-sys-mods | ||
Version: 2:20220915-dietpi1 | ||
Version: 2:20220915-dietpi2 | ||
Architecture: all | ||
Maintainer: MichaIng <[email protected]> | ||
Date: $(date -u '+%a, %d %b %Y %T %z') | ||
|
@@ -149,6 +158,6 @@ G_CONFIG_INJECT 'Installed-Size: ' "Installed-Size: $(du -sk raspberrypi-sys-mod | |
|
||
# Build DEB package | ||
G_EXEC rm -Rf raspberrypi-sys-mods.deb | ||
G_EXEC_OUTPUT=1 G_EXEC dpkg-deb -b raspberrypi-sys-mods | ||
G_EXEC_OUTPUT=1 G_EXEC dpkg-deb -b -Zxz -z9 raspberrypi-sys-mods | ||
G_EXEC rm -Rf raspberrypi-sys-mods | ||
} |
Oops, something went wrong.