Skip to content

Commit

Permalink
XSnow: switch to buildscript
Browse files Browse the repository at this point in the history
progress for: #2160
progress for: #2232
  • Loading branch information
theofficialgman committed Jan 21, 2023
1 parent e7dd540 commit 3332db1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/updates/XSnow.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

webVer=$(wget -qO- https://www.ratrabbit.nl/ratrabbit/xsnow/downloads/index.html | grep -A1 "Download debian package for Raspbian:" | tail -n 1 | sed 's/<p>//g ; s+</p>++g' | sed 's+"./../../../downloads/xsnow/.*armhf.deb">++g ; s+</a>++g' | grep -oP '^[^\_]*\_\K[^\_]+')
armhf_url="https://www.ratrabbit.nl/downloads/xsnow/xsnow_${webVer}_armhf.deb"
arm64_url="https://www.ratrabbit.nl/downloads/xsnow/xsnow_${webVer}_arm64.deb"
webVer=$(wget -qO- https://www.ratrabbit.nl/ratrabbit/xsnow/downloads/index.html | grep -A1 "Download source:" | tail -n 1 | sed 's/<p>//g ; s+</p>++g' | sed 's+"./../../../downloads/xsnow/xsnow-.*tar.gz">++g ; s+</a>++g' | grep -oP '^[^-]*\-\K[^*]+' | sed -n 's/.tar.gz//p')
all_url="https://www.ratrabbit.nl/downloads/xsnow/xsnow-${webVer}.tar.gz"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
13 changes: 13 additions & 0 deletions apps/XSnow/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

version=3.7.0~pre02

install_packages build-essential libx11-dev libxpm-dev libxt-dev libxext-dev pkg-config libxml2-dev libgtk-3-dev libxinerama-dev libxtst-dev libgsl-dev || exit 1

cd /tmp || error "Could not move to /tmp folder"
rm -rf /tmp/xsnow*
wget -O xsnow.tar.gz https://www.ratrabbit.nl/downloads/xsnow/xsnow-${version}.tar.gz
tar -xvf xsnow.tar.gz
cd xsnow-${version} || error "Could not move to xsnow directory folder"
./configure --prefix=/usr && make -j$(nproc) && sudo make install || error "Make install failed"
rm -rf /tmp/xsnow*
5 changes: 0 additions & 5 deletions apps/XSnow/install-32

This file was deleted.

5 changes: 0 additions & 5 deletions apps/XSnow/install-64

This file was deleted.

2 changes: 2 additions & 0 deletions apps/XSnow/uninstall
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

sudo rm -rf /usr/games/xsnow /usr/share/applications/xsnow.desktop /usr/share/doc/xsnow /usr/share/locale/*/LC_MESSAGES/xsnow.mo /usr/share/man/man6/xsnow.6.gz /usr/share/metainfo/xsnow.appdata.xml /usr/share/pixmaps/xsnow.svg

purge_packages || exit 1
1 change: 0 additions & 1 deletion etc/category-overrides-jetson-18.04
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,5 @@ Vivaldi|hidden
Windows 10 Theme|hidden
Windows Flasher|hidden
Windows Screensavers|hidden
XSnow|hidden
YouTubuddy|hidden
Zoom|hidden

0 comments on commit 3332db1

Please sign in to comment.