diff --git a/add_packages.sh b/add_packages.sh
index 58d4735..12779bf 100755
--- a/add_packages.sh
+++ b/add_packages.sh
@@ -39,3 +39,8 @@ grep -qF sdl2-ttf-version ../blfs_root/blfs-xml/packages.ent || echo '.*/i ' ../blfs_root/blfs-xml/general/graphlib/graphlib.xml
grep -qF sdl2-image-version ../blfs_root/blfs-xml/packages.ent || echo '' >> ../blfs_root/blfs-xml/packages.ent
+
+# Add VSCode
+cp -fv xsoft/other/vscode.xml ../blfs_root/blfs-xml/xsoft/other
+grep -qF vscode.xml ../blfs_root/blfs-xml/xsoft/other/other.xml || sed -i '/<\/chapter>.*/i ' ../blfs_root/blfs-xml/xsoft/other/other.xml
+grep -qF vscode-version ../blfs_root/blfs-xml/packages.ent || echo '' >> ../blfs_root/blfs-xml/packages.ent
\ No newline at end of file
diff --git a/general/graphlib/sdl2-image.xml b/general/graphlib/sdl2-image.xml
index eca8191..baf4c97 100644
--- a/general/graphlib/sdl2-image.xml
+++ b/general/graphlib/sdl2-image.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/general/graphlib/sdl2-ttf.xml b/general/graphlib/sdl2-ttf.xml
index a6e6930..dab7182 100644
--- a/general/graphlib/sdl2-ttf.xml
+++ b/general/graphlib/sdl2-ttf.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/multimedia/videoutils/qmplay2.xml b/multimedia/videoutils/qmplay2.xml
index 68c8a15..9ed45d6 100644
--- a/multimedia/videoutils/qmplay2.xml
+++ b/multimedia/videoutils/qmplay2.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/networking/netlibs/libtorrent-rasterbar.xml b/networking/netlibs/libtorrent-rasterbar.xml
index 6a7b11b..17b012a 100644
--- a/networking/netlibs/libtorrent-rasterbar.xml
+++ b/networking/netlibs/libtorrent-rasterbar.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/postlfs/security/pkcs11-helper.xml b/postlfs/security/pkcs11-helper.xml
index dc799fb..36c533e 100644
--- a/postlfs/security/pkcs11-helper.xml
+++ b/postlfs/security/pkcs11-helper.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/server/other/minidlna.xml b/server/other/minidlna.xml
index 7d17f02..70e2dc3 100644
--- a/server/other/minidlna.xml
+++ b/server/other/minidlna.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/update_package_versions.sh b/update_package_versions.sh
index 3d56d78..8a2bc07 100755
--- a/update_package_versions.sh
+++ b/update_package_versions.sh
@@ -12,9 +12,12 @@ greetMsg()
# Does the actual update of the package with the found version.
updatePkg()
{
+ MD5=$(curl -sL "$3" | md5sum | cut -d' ' -f1)
sed -i -E "s@($1-version \"+)(.+\">)@\1$2\">@" add_packages.sh
sed -i -E "s@($1-download-http \"+)(.+\">)@\1$3\">@" ./"$4"/"$1".xml
+ sed -i -E "s@($1-md5sum *\"+)(.+\">)@\1$MD5\">@" ./"$4"/"$1".xml
echo "Latest version: $2"
+ echo "MD5 sum: $MD5"
printf "Found package: %s\n" "$3"
}
@@ -28,7 +31,18 @@ getLatestGithubRelease()
VER=$(echo "$URL" | awk -F/ '{ print $(NF-1) }' | awk -F- '{ print $NF }')
if [[ $4 ]]; then
VER=$(echo "$VER" | cut -c"$4")
- fi
+ fi
+ updatePkg "$2" "$VER" "$URL" "$3" "$MD5"
+}
+
+# Function that gets the latest release of a specific package.
+# This function works only with packages stored on github.
+# It generates a codeload tar.gz download link
+getLatestCodeloadRelease()
+{
+ greetMsg "$2"
+ VER=$(curl -v --silent "https://github.com/$1/releases" 2>&1 | grep 'loading="lazy" src=' | tr '"' '\n' | grep /releases/ -m1 | rev | cut -d/ -f1 | rev)
+ URL="https://codeload.github.com/$1/tar.gz/refs/tags/$VER"
updatePkg "$2" "$VER" "$URL" "$3"
}
@@ -70,4 +84,6 @@ getLatestGithubRelease libsdl-org/SDL_image sdl2-image general/graphlib
#SDL2-ttf
getLatestGithubRelease libsdl-org/SDL_ttf sdl2-ttf general/graphlib
+#vscode
+getLatestCodeloadRelease microsoft/vscode vscode xsoft/other
diff --git a/xsoft/other/qbittorrent.xml b/xsoft/other/qbittorrent.xml
index a3d941a..2847051 100644
--- a/xsoft/other/qbittorrent.xml
+++ b/xsoft/other/qbittorrent.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/xsoft/other/vscode.xml b/xsoft/other/vscode.xml
new file mode 100644
index 0000000..e6e0207
--- /dev/null
+++ b/xsoft/other/vscode.xml
@@ -0,0 +1,122 @@
+
+
+ %general-entities;
+
+
+
+
+
+
+
+]>
+
+
+
+
+
+ VSCode-&vscode-version;
+
+
+ VSCode
+
+
+
+ Introduction to VSCode
+
+
+ VSCode is a nice IDE for different programming languages.
+
+
+ Package Information
+
+
+
+ Download (HTTP):
+
+
+
+
+ Download (FTP):
+
+
+
+
+ Download MD5 sum: &vscode-md5sum;
+
+
+
+
+ Download size: &vscode-size;
+
+
+
+
+ Estimated disk space required: &vscode-buildsize;
+
+
+
+
+ Estimated build time: &vscode-time;
+
+
+
+
+ VSCode Dependencies
+
+ Required
+
+ , and
+ , and
+
+
+
+
+
+ Installation of VSCode
+
+
+ Install VSCode by running the
+ following commands:
+
+
+sed "/git config /s/^/\/\//" build/npm/postinstall.js &&
+npm install &&
+npm run watch
+
+
+ This package does not come with a test suite.
+
+
+
+ Now, as the root user:
+
+
+ cmake --install build
+
+
+
+ Contents
+
+
+ Installed Programs
+ Installed Libraries
+ Installed Directory
+
+
+
+ vscode
+
+
+ None
+
+
+ /usr/share/vscode
+
+
+
+
+
+
+