26 lines
1.5 KiB
YAML
26 lines
1.5 KiB
YAML
|
name : scratch
|
||
|
version : 3.29.1
|
||
|
release : 1
|
||
|
source :
|
||
|
# - https://downloads.scratch.mit.edu/desktop/Scratch%20Setup.exe : dfca2f1a842aea69a2b0a22ca66fa7852f86259e3da4f576f8ae7fa16f1e9134
|
||
|
- https://ftp.zhirov.kz/trash/scratch_3.29.1.exe : dfca2f1a842aea69a2b0a22ca66fa7852f86259e3da4f576f8ae7fa16f1e9134
|
||
|
homepage : https://scratch.mit.edu/
|
||
|
license : AGPL-3.0
|
||
|
component : programming
|
||
|
summary : Scratch is the world's largest coding community for children and a coding language with a simple visual interface that allows young people to create digital stories, games, and animations.
|
||
|
description: |
|
||
|
Scratch is the world's largest coding community for children and a coding language with a simple visual interface that allows young people to create digital stories, games, and animations.
|
||
|
builddeps :
|
||
|
- nodejs
|
||
|
build : |
|
||
|
npm install electron asar --save-dev
|
||
|
install : |
|
||
|
mkdir -p $installdir/opt/scratch/resources/app
|
||
|
cp -r $workdir/node_modules/electron/dist/* $installdir/opt/scratch/
|
||
|
rm $installdir/opt/scratch/resources/default_app.asar
|
||
|
cp -r $workdir/resources/static $installdir/opt/scratch/resources
|
||
|
$workdir/node_modules/.bin/asar extract $workdir/resources/app.asar $installdir/opt/scratch/resources/app
|
||
|
ln -sfr $installdir/opt/scratch/electron $installdir/opt/scratch/scratch-desktop
|
||
|
install -Dm644 $pkgfiles/scratch-desktop.desktop "$installdir/usr/share/applications/scratch-desktop.desktop"
|
||
|
install -Dm644 $pkgfiles/scratch-desktop.png "$installdir/opt/scratch/scratch-desktop.png"
|