diff --git a/programming/language/scratch/actions.py b/programming/language/scratch/actions.py new file mode 100644 index 0000000000..bd76252fb2 --- /dev/null +++ b/programming/language/scratch/actions.py @@ -0,0 +1,47 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools + +def setup(): + pisitools.dosed("src/scratch", "-xshm ", "") + # fix unused direct dependency analysis + pisitools.dosed("src/plugins/unicode/Makefile", "gcc -shared", "gcc -Wl,-O1,--as-needed -shared") + +def build(): + pisitools.cflags.add("-Wno-unused-result -Wno-parentheses -Wno-implicit-function-declaration") + shelltools.system("make build") + +def install(): + # install binary and additional files + pisitools.insinto("/usr/bin/", "src/scratch") + shelltools.chmod("%s/usr/bin/scratch" % get.installDIR(), 0755) + pisitools.insinto("/usr/lib/scratch/", "Scratch.image") + pisitools.insinto("/usr/lib/scratch/", "Scratch.ini") + pisitools.insinto("/usr/share/applications/", "src/scratch.desktop") + pisitools.insinto("/usr/share/mime/packages/", "src/scratch.xml") + + # install documentation files + pisitools.dodoc("LICENSE*", "README*", "gpl*") + shelltools.copytree("Help", "%s/usr/share/doc/scratch" % get.installDIR()) + + #install man file + pisitools.insinto("/usr/share/man/man1/", "src/man/scratch.1.gz") + + # install data files under share + for dirs in ["Help", "locale", "Media", "Projects"]: + shelltools.copytree(dirs, "%s/usr/share/scratch" % get.installDIR()) + + # install plugins + shelltools.copytree("Plugins", "%s/usr/lib/scratch" % get.installDIR()) + + # install images + shelltools.cd("src/icons") + for dirs in ["32x32", "48x48", "128x128"]: + pisitools.insinto("/usr/share/icons/hicolor/%s/apps" % dirs, "%s/*.*" % dirs) \ No newline at end of file diff --git a/programming/language/scratch/pspec.xml b/programming/language/scratch/pspec.xml new file mode 100644 index 0000000000..2f9931941c --- /dev/null +++ b/programming/language/scratch/pspec.xml @@ -0,0 +1,50 @@ + + + + + scratch + https://scratch.mit.edu + + Blue Devil + bluedevil@sctzine.com + + programming.language + GPLv2 + app:gui + Programming language learning environment for stories, games, music and art. + Scratch is a programming language that makes it easy to create your own interactive stories, animations, games, music, and art -- and share your creations on the web. + https://download.scratch.mit.edu/scratch-1.4.0.7.src.tar.gz + + gtk2-devel + pango-devel + + + + + scratch + Programming language learning environment for stories, games, music and art. + + gtk2 + pango + squeak-vm + shared-mime-info + desktop-file-utils + + + /usr/share/ + /usr/lib/ + /usr/bin + /usr/share/doc/fplll + + + + + + 2020-05-21 + 1.4.0.7 + First pisi release. + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/programming/language/scratch/translations.xml b/programming/language/scratch/translations.xml new file mode 100644 index 0000000000..14a0f6b878 --- /dev/null +++ b/programming/language/scratch/translations.xml @@ -0,0 +1,8 @@ + + + + scratch + Çocuklar için, sanat, müzik ve öyküler ile geliştirme yapılan programlama dili ve ortamı. + Scratch, çcuklar için sanat, müzik ve öyküler ile geliştirme yapılan programlama dili ve ortamı sunar. + + \ No newline at end of file