scratch: first pisi rel
This commit is contained in:
@@ -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)
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>scratch</Name>
|
||||
<Homepage>https://scratch.mit.edu</Homepage>
|
||||
<Packager>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Packager>
|
||||
<PartOf>programming.language</PartOf>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:gui</IsA>
|
||||
<Summary>Programming language learning environment for stories, games, music and art.</Summary>
|
||||
<Description>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.</Description>
|
||||
<Archive sha1sum="45cb66d1af1f7887f23a1606911bacb1858a24d6" type="targz">https://download.scratch.mit.edu/scratch-1.4.0.7.src.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>gtk2-devel</Dependency>
|
||||
<Dependency>pango-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>scratch</Name>
|
||||
<Summary>Programming language learning environment for stories, games, music and art.</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>gtk2</Dependency>
|
||||
<Dependency>pango</Dependency>
|
||||
<Dependency>squeak-vm</Dependency>
|
||||
<Dependency>shared-mime-info</Dependency>
|
||||
<Dependency>desktop-file-utils</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/usr/share/</Path>
|
||||
<Path fileType="library">/usr/lib/</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="doc">/usr/share/doc/fplll</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2020-05-21</Date>
|
||||
<Version>1.4.0.7</Version>
|
||||
<Comment>First pisi release.</Comment>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>scratch</Name>
|
||||
<Summary xml:lang="tr">Çocuklar için, sanat, müzik ve öyküler ile geliştirme yapılan programlama dili ve ortamı.</Summary>
|
||||
<Description xml:lang="tr">Scratch, çcuklar için sanat, müzik ve öyküler ile geliştirme yapılan programlama dili ve ortamı sunar.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user