add Stencyl

This commit is contained in:
Alexander Popov 2022-06-07 04:30:27 +03:00
parent a5583505df
commit 7784adeaba
Signed by: iiiypuk
GPG Key ID: 3F76816AEE08F908
4 changed files with 55 additions and 0 deletions

30
packages/stencyl/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Maintainer: Alexander Popov <iiiypuk (at) fastmail.fm>
pkgname=stencyl
pkgver=4.0.4
pkgrel=1
pkgdesc='A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++'
arch=('x86_64')
url="http://www.stencyl.com/"
license=("custom")
source=(
"stencyl"
"stencyl.desktop"
"stencyl.png"
"Stencyl-4.0.4-linux.tar.gz::https://www.stencyl.com/download/get/4.0.4/linux.tar.gz/"
)
md5sums=(
"869a36a5833cffe48cbbe32bb397f7c0"
"59164e515932ea0cc5932fc46e8e5da4"
"c99ae55db267e86c0936e01662ee12ea"
"4cffaf180e5038c3c211859b31c295e3"
)
package() {
install -d "$pkgdir/opt/Stencyl-${pkgver}"
install -Dm755 "$srcdir/stencyl" "$pkgdir/usr/bin/stencyl"
install -Dm755 "$srcdir/stencyl.desktop" "$pkgdir/usr/share/applications/stencyl.desktop"
install -Dm644 "$srcdir/stencyl.png" "$pkgdir/usr/share/pixmaps/stencyl.png"
cp --preserve=mode -r "${srcdir}/Stencyl-${pkgver}-linux/"* "${pkgdir}"/opt/Stencyl-${pkgver}
}

16
packages/stencyl/stencyl Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
LOCAL="$HOME/.local/share/stencyl"
if [ ! -d "$LOCAL" ]; then
mkdir -p "$LOCAL"
cd /opt/Stencyl-4.0.4/
for f in *; do
ln -s /opt/Stencyl-4.0.4/"$f" "$LOCAL/$f"
done
rm -f "$LOCAL/games"
mkdir -p "$LOCAL/games"
fi
cd "$LOCAL"
exec ./Stencyl "$@"

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Version=4.0.4
Name=Stencyl
Comment=Create amazing games without code
Exec=stencyl
Icon=/usr/share/pixmaps/stencyl.png
Terminal=false
Categories=Games;Programming

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB