diff --git a/srcpkgs/scratch/template b/srcpkgs/scratch/template new file mode 100644 index 0000000000..5ff2285b5f --- /dev/null +++ b/srcpkgs/scratch/template @@ -0,0 +1,35 @@ +# Template file for 'scratch' +pkgname=scratch +version=1.4.0.7 +revision=1 +wrksrc="${pkgname}-${version}.src" +hostmakedepends="pkg-config" +makedepends="squeak pango-devel shared-mime-info desktop-file-utils gtk-update-icon-cache" +depends="${makedepends/pango-devel/}" +short_desc="Create and share your own interactive stories, games, music and art" +maintainer="Juan RP " +license="GPL-2" +homepage="http://scratch.mit.edu" +distfiles="http://download.scratch.mit.edu/${pkgname}-${version}.src.tar.gz" +checksum=b94d89278ecef2ba2d1147eec23936dd99697293ffa2c216c0a375ba98226a3e + +do_build() { + make CC=$CC CFLAGS="$CFLAGS" ${makejobs} build +} +do_install() { + vinstall src/scratch 755 usr/bin + vinstall Scratch.image 644 usr/lib/scratch + vinstall Scratch.ini 644 usr/lib/scratch + vinstall src/scratch.desktop 644 usr/share/applications + vinstall src/man/scratch.1.gz 644 usr/share/man/man1 + vinstall src/scratch.xml 644 usr/share/mime/packages + install -dm755 ${DESTDIR}/usr/share/{scratch,icons/hicolor} + + cp -rp Help locale Media Projects README ${DESTDIR}/usr/share/scratch + cp -rp Plugins ${DESTDIR}/usr/lib/scratch + + for res in 32 48 128; do + install -D -m644 src/icons/${res}x${res}/scratch.png \ + ${DESTDIR}/usr/share/icons/hicolor/${res}x${res}/apps/scratch.png + done +}