[arch-commits] Commit in scratch/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:00:24 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:00:23
  Author: felixonmars
Revision: 659498

archrelease: copy trunk to community-staging-x86_64

Added:
  scratch/repos/community-staging-x86_64/
  scratch/repos/community-staging-x86_64/PKGBUILD
    (from rev 659497, scratch/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: scratch/repos/community-staging-x86_64/PKGBUILD (from rev 659497, scratch/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 17:00:23 UTC (rev 659498)
@@ -0,0 +1,48 @@
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Muhammed Uluyol <muhammedu at gmail.com>
+
+pkgname=scratch
+pkgver=1.4.0.7
+pkgrel=8
+pkgdesc="Create and share your own interactive stories, games, music and art"
+arch=('x86_64')
+url="https://scratch.mit.edu"
+license=('GPL2')
+depends=('squeak-vm' 'shared-mime-info' 'desktop-file-utils' 'pango'
+         'gtk-update-icon-cache')
+backup=('usr/lib/scratch/Scratch.ini')
+source=(https://download.scratch.mit.edu/$pkgname-$pkgver.src.tar.gz)
+md5sums=('f948e9e6de3ec9c7c7b4cc2a1975eb5a')
+
+prepare() {
+  cd $pkgname-$pkgver.src
+
+  # Fix FS#41125
+  sed -i 's/-xshm //' src/$pkgname
+}
+
+build() {
+  cd $pkgname-$pkgver.src
+
+  make build
+}
+
+package() {
+  cd $pkgname-$pkgver.src
+
+  install -Dm755 src/$pkgname "$pkgdir"/usr/bin/$pkgname
+  install -Dm644 Scratch.image "$pkgdir"/usr/lib/$pkgname/Scratch.image
+  install -m644 Scratch.ini "$pkgdir"/usr/lib/$pkgname/Scratch.ini
+  install -Dm644 src/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
+  install -Dm644 src/man/$pkgname.1.gz "$pkgdir"/usr/share/man/man1/$pkgname.1.gz
+  install -Dm644 src/$pkgname.xml "$pkgdir"/usr/share/mime/packages/$pkgname.xml
+  install -dm755 "$pkgdir"/usr/share/{$pkgname,icons/hicolor}
+
+  cp -rp Help locale Media Projects README "$pkgdir"/usr/share/$pkgname/
+  cp -rp Plugins "$pkgdir"/usr/lib/$pkgname/
+
+  for res in 32 48 128; do
+    install -D -m644 src/icons/${res}x${res}/$pkgname.png \
+      "$pkgdir"/usr/share/icons/hicolor/${res}x${res}/apps/$pkgname.png
+  done
+}



More information about the arch-commits mailing list