summaryrefslogtreecommitdiff
path: root/repo/scratch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/scratch
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/scratch')
-rw-r--r--repo/scratch/scratch.xibuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/repo/scratch/scratch.xibuild b/repo/scratch/scratch.xibuild
new file mode 100644
index 0000000..2e4bf5b
--- /dev/null
+++ b/repo/scratch/scratch.xibuild
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+NAME="scratch"
+DESC="Create and share your own interactive stories, games, music and art"
+
+MAKEDEPS="make pango glib cairo"
+DEPS="squeak-vm"
+
+PKG_VER=1.4.0.7
+SOURCE="https://download.scratch.mit.edu/scratch-$PKG_VER.src.tar.gz"
+
+build() {
+ make build
+}
+
+package() {
+ install -Dm755 src/scratch "$PKG_DEST"/usr/bin/scratch
+ install -Dm644 Scratch.image "$PKG_DEST"/usr/lib/scratch/Scratch.image
+ install -m644 Scratch.ini "$PKG_DEST"/usr/lib/scratch/Scratch.ini
+ install -Dm644 src/scratch.desktop "$PKG_DEST"/usr/share/applications/scratch.desktop
+ install -Dm644 src/man/scratch.1.gz "$PKG_DEST"/usr/share/man/man1/scratch.1.gz
+ install -Dm644 src/scratch.xml "$PKG_DEST"/usr/share/mime/packages/scratch.xml
+ install -D -m644 src/icons/128x128/scratch.png "$PKG_DEST"/usr/share/icons/hicolor/128x128/apps/scratch.png
+
+ mv Help/ locale/ Media/ Projects/ README Plugins/ "$PKG_DEST/usr/lib/scratch/"
+}
+