commit 4bd060c44d5d49641a3377b9dd385cb180adc9df Author: Alexander Zhirov Date: Sun Mar 9 01:16:02 2025 +0300 init diff --git a/README.md b/README.md new file mode 100644 index 0000000..7095849 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +![scratch](files/scratch-desktop.png) + +# Scratch + +[Scratch](https://scratch.mit.edu/) — крупнейшее в мире сообщество программирования для детей и язык программирования с простым визуальным интерфейсом, который позволяет молодым людям создавать цифровые истории, игры и анимацию. diff --git a/files/scratch-desktop.desktop b/files/scratch-desktop.desktop new file mode 100644 index 0000000..a21f32f --- /dev/null +++ b/files/scratch-desktop.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Scratch +GenericName=Create and share your own interactive stories, games, music and art +Comment=Create and share your own interactive stories, games, music and art +Exec=/opt/scratch/scratch-desktop +Icon=scratch-desktop +Terminal=false +StartupNotify=true +Categories=Education; diff --git a/files/scratch-desktop.png b/files/scratch-desktop.png new file mode 100644 index 0000000..bea4e70 Binary files /dev/null and b/files/scratch-desktop.png differ diff --git a/package.yml b/package.yml new file mode 100644 index 0000000..c4ec747 --- /dev/null +++ b/package.yml @@ -0,0 +1,25 @@ +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"