Browse Source

Update plugin list, support data packages

pull/14/head
falkTX 5 years ago
parent
commit
a5477e0cb2
11 changed files with 466 additions and 189 deletions
  1. +33
    -10
      repo/generate-page-plugins.sh
  2. +433
    -179
      repo/plugins.html
  3. BIN
      repo/screenshots/abgate.png
  4. BIN
      repo/screenshots/add64.png
  5. BIN
      repo/screenshots/adlplug.png
  6. +0
    -0
      repo/screenshots/amsynth.png
  7. +0
    -0
      repo/screenshots/arpage.png
  8. BIN
      repo/screenshots/avldrums.lv2.png
  9. +0
    -0
      repo/screenshots/luppp.png
  10. +0
    -0
      repo/screenshots/paulstretch.png
  11. BIN
      screenshots/add64.png

+ 33
- 10
repo/generate-page-plugins.sh View File

@@ -5,11 +5,11 @@ set -e
cd $(dirname $0)

PACKAGES_ARCHS=("amd64" "arm64" "armhf" "i386")
PACKAGES_BLACKLIST=("calf-ladspa" "distrho-src" "lv2vst")
PACKAGES_BLACKLIST=("calf-ladspa" "carla-lv2" "carla-vst" "carla-bridge-linux32" "carla-bridge-linux64" "distrho-src" "lv2vst")
PACKAGES_BASE_URL="http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu/"

# rm -f Packages.gz Packages
#
#
# wget -q http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu/dists/bionic/main/binary-amd64/Packages.gz
# gzip -d Packages.gz

@@ -26,6 +26,17 @@ function is_blacklisted() {
return 1
}

function has_data_package() {
local TEST="${1}-data"
local PACKAGE
for PACKAGE in ${PACKAGES[@]}; do
if [ ${TEST} = ${PACKAGE} ]; then
return 0
fi
done
return 1
}

for PACKAGE in ${PACKAGES[@]}; do
if is_blacklisted ${PACKAGE}; then
continue
@@ -44,6 +55,7 @@ for PACKAGE in ${PACKAGES[@]}; do
continue
fi

PACKAGE_DATA=$(has_data_package "${PACKAGE}" && echo "${PACKAGE}-data" || echo)
PACKAGE_DESCRIPTION=$(echo "${PACKAGE_DETAILS}" | awk 'sub("Description: ","")')
PACKAGE_PROVIDES=$(echo "${PACKAGE_DETAILS}" | awk 'sub("Provides: ","")')
PACKAGE_SIZE=$(echo "${PACKAGE_DETAILS}" | grep -v "Installed-Size:" | awk 'sub("Size: ","")')
@@ -70,11 +82,24 @@ for PACKAGE in ${PACKAGES[@]}; do
echo "<tr><td>Package Name:</td><td>${PACKAGE}</td></tr>"
echo "<tr><td>Description:</td><td>${PACKAGE_DESCRIPTION}</td></tr>"
echo "<tr><td>Version:</td><td>${PACKAGE_VERSION}</td></tr>"
echo "<tr><td>Expected size:</td><td>"
if [ ${PACKAGE_SIZE} -gt 999999 ]; then
echo "<tr><td>Expected size:</td><td>$((${PACKAGE_SIZE} / 1024 / 1024))Mb</td></tr>"
echo "$((${PACKAGE_SIZE} / 1024 / 1024))Mb"
else
echo "<tr><td>Expected size:</td><td>$((${PACKAGE_SIZE} / 1024))Kb</td></tr>"
echo "$((${PACKAGE_SIZE} / 1024))Kb"
fi
if [ -n "${PACKAGE_DATA}" ]; then
PACKAGE_DATA_LINESTART=$(cat Packages | grep -x -n "Package: ${PACKAGE_DATA}" | cut -d ':' -f 1)
PACKAGE_DATA_NUMLINES=$(cat Packages | tail -n +$((${PACKAGE_DATA_LINESTART} + 1)) | grep -n "Package: " | head -n 1 | cut -d ':' -f 1)
if [ -n "${PACKAGE_DATA_NUMLINES}" ]; then
PACKAGE_DATA_DETAILS=$(cat Packages | tail -n +${PACKAGE_DATA_LINESTART} | head -n ${PACKAGE_DATA_NUMLINES})
else
PACKAGE_DATA_DETAILS=$(cat Packages | tail -n +${PACKAGE_DATA_LINESTART})
fi
PACKAGE_DATA_SIZE=$(echo "${PACKAGE_DATA_DETAILS}" | grep -v "Installed-Size:" | awk 'sub("Size: ","")')
echo "+ $((${PACKAGE_DATA_SIZE} / 1024 / 1024))Mb (data)"
fi
echo "</td></tr>"
if [ -z "${PACKAGE_PROVIDES}" ]; then
echo "<tr><td>Provides:</td><td>??</td></tr>"
else
@@ -104,6 +129,10 @@ for PACKAGE in ${PACKAGES[@]}; do
PACKAGE_FILENAME_ARCHED=$(echo "${PACKAGE_FILENAME}" | sed "s/_amd64.deb/_${ARCH}.deb/g")
echo "<a href=\"${PACKAGES_BASE_URL}${PACKAGE_FILENAME_ARCHED}\" target=\"_blank\">${ARCH}</a>&nbsp;&nbsp;"
done
if [ -n "${PACKAGE_DATA}" ]; then
PACKAGE_FILENAME_DATA=$(echo "${PACKAGE_FILENAME}" | sed "s|/${PACKAGE}_|/${PACKAGE_DATA}_|g" | sed "s/_amd64.deb/_all.deb/g")
echo "<a href=\"${PACKAGES_BASE_URL}${PACKAGE_FILENAME_DATA}\" target=\"_blank\">data</a>"
fi
echo "</tr>"
echo "</table></div></div>"

@@ -111,9 +140,3 @@ for PACKAGE in ${PACKAGES[@]}; do
echo "<br/>"
echo
done

# print_plugin("add64", "add64", "Add64", "Standalone", ARRAY(
# 'Add64 is the result of experiments around additive synthesis and is intended for research purposes only.',
# 'The spectral drawing scheme for the harmonics and envelopes has been inspired by the virtual pipe organ Aeolus by Fons Adriaensen.',
# 'Project Page: <a href="https://sourceforge.net/projects/add64/" class="external text" rel="nofollow" target="_blank">https://sourceforge.net/projects/add64/</a>'
# ));

+ 433
- 179
repo/plugins.html
File diff suppressed because it is too large
View File


BIN
repo/screenshots/abgate.png View File

Before After
Width: 640  |  Height: 200  |  Size: 159KB

BIN
repo/screenshots/add64.png View File

Before After
Width: 1146  |  Height: 973  |  Size: 120KB

BIN
repo/screenshots/adlplug.png View File

Before After
Width: 1142  |  Height: 864  |  Size: 271KB

screenshots/amsynth.png → repo/screenshots/amsynth.png View File


screenshots/arpage.png → repo/screenshots/arpage.png View File


BIN
repo/screenshots/avldrums.lv2.png View File

Before After
Width: 512  |  Height: 256  |  Size: 79KB

screenshots/luppp.png → repo/screenshots/luppp.png View File


screenshots/paulstretch.png → repo/screenshots/paulstretch.png View File


BIN
screenshots/add64.png View File

Before After
Width: 1079  |  Height: 739  |  Size: 108KB

Loading…
Cancel
Save