Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: renpy7-full #5125

Merged
merged 6 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ quintom-cursor-theme-git
raspi-config-deb
realvnc-vnc-viewer-deb
renegate
renpy7-full
reshade-shaders-git
rhino-core
rhino-kvantum-theme-git
Expand Down
75 changes: 75 additions & 0 deletions packages/renpy7-full/renpy7-full.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name="renpy7-full"
gives="renpy"
replace="${gives}"
breaks=("${gives}7" "${gives}-full" "${gives}-nightly")
repology=("project: ${gives}")
pkgdesc="A visual novel engine (version 7)"
pkgver="7.6.3"
arch=("amd64" "arm64")
homepage="https://www.renpy.org"
maintainer="vigress8 <[email protected]>"
url="https://www.renpy.org/dl/${pkgver}/${gives}-${pkgver}-sdk.tar.bz2"
case "${CARCH}" in
amd64)
hash="556ea40922e304460d50bd3eb335ab9ddce988390dbbf9f7aa77dde4ae959be1"
;;
arm64)
url="${url/sdk/sdkarm}"
hash="6a01c152786723f9788eaed9caeb20181ef7ae2ea77b9f3c6ad98a3508410d12"
;;
*) ;;
esac

declare -A \
sums=(
vigress8 marked this conversation as resolved.
Show resolved Hide resolved
["${gives}-${pkgver}-rapt.zip"]="8cf4b38551a35d2a5af6ba94d021a50b15f375aab86668f9e642f21452e8381e"
["${gives}-${pkgver}-renios.zip"]="79d682be6db93f2a64edebbe1fb8805c7eadc5112e562e639974ce1a09a1e74a"
["${gives}-${pkgver}-steam.zip"]="9fe01b9c0bbf011a7261b4f212438a555e231f549ec54833dcbdc597fbf91664"
["${gives}-${pkgver}-web.zip"]="d56da8d35cfaa50596239e564d18df2fd1eced0c558681eb4e7863b6c6e5bd88"
)

prepare() {
for filename in "${!sums[@]}"; do
curl -sO "https://www.renpy.org/dl/${pkgver}/${filename}"
sha256sum -c <<< "${sums[${filename}]} ${filename}" > /dev/null || {
fancy_message error "Integrity check for ${filename} failed"
return 1
}
done
}

package() {
unzip -qq ./"*.zip"
rm ./*.zip
sudo install -Dm644 "LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${gives}"
rm -rf "LICENSE.txt" "renpy.app" "lib/"{py3-{mac-universal,windows-x86_64},python3.9}
sudo install -Dm644 "launcher/game/images/logo.png" "${pkgdir}/usr/share/pixmaps/${gives}.png"
sudo install -Dm644 "launcher/game/images/logo32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${gives}.png"
sudo mkdir -p "${pkgdir}/opt/${gives}"
sudo mv ./* "${pkgdir}/opt/${gives}"

sudo install -Dm644 /dev/stdin "${pkgdir}/opt/applications/${gives}.desktop" <<- END
[Desktop Entry]
Type=Application
Name=Ren'Py
Comment=A visual novel engine
Icon=${gives}
Exec=${gives}
TryExec=${gives}
Terminal=false
Categories=Development;Game;
END

sudo chgrp -R games "${pkgdir}/opt/${gives}/"{the_question,tutorial}
sudo chmod g+w "${pkgdir}/opt/${gives}/"{the_question,tutorial}
}

post_install() {
sudo ln -sf "/opt/${gives}/doc" "/usr/share/doc/${gives}"
sudo ln -sf "/opt/${gives}/${gives}.sh" "/usr/bin/${gives}"
}

post_remove() {
sudo rm -f "/usr/share/doc/${gives}"
sudo rm -f "/usr/bin/${gives}"
}
Loading