diff --git a/play.d/waywallen.sh b/play.d/waywallen.sh new file mode 100644 index 00000000..1ac51c5c --- /dev/null +++ b/play.d/waywallen.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +PKGNAME=waywallen +SUPPORTEDARCHES="x86_64" +VERSION="$2" +DESCRIPTION="Dynamic wallpaper solution for Linux desktops" +URL="https://github.com/waywallen/waywallen" +DISPLAY_URL="https://github.com/waywallen/waywallen-display" + +. $(dirname $0)/common.sh + +if [ "$VERSION" = "*" ] ; then + PKGURL=$(get_github_url "$URL" "$PKGNAME-*-x86_64.AppImage") +else + PKGURL="$URL/releases/download/v$VERSION/$PKGNAME-$VERSION-x86_64.AppImage" +fi + +install_pkgurl || exit + +DISPLAY_VERSION="$(get_github_tag "$DISPLAY_URL" | sed -e 's|^v||')" + +[ -n "$DISPLAY_VERSION" ] || DISPLAY_VERSION="" + +cat <