summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..db63c394b4e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id$
+# Contributor: Chad Voegele <cavoegele@gmail.com>
+
+pkgname=nand2tetris
+pkgver=2.5
+pkgrel=3
+pkgdesc="Software suite accompanying Nand2Tetris course."
+arch=('any')
+url="http://www.nand2tetris.org/"
+license=('GPL')
+depends=('java-runtime')
+makedepends=('unzip')
+source=(http://www.nand2tetris.org/software/nand2tetris.zip
+ n2tCPUEmulator.run
+ n2tVMEmulator.run
+ n2tJackCompiler.run
+ n2tHardwareSimulator.run
+ n2tAssembler.run
+ n2tCPUEmulator.desktop
+ n2tVMEmulator.desktop
+ n2tHardwareSimulator.desktop
+ n2tAssembler.desktop
+)
+md5sums=('1e8c2c77698fddfe570f214db56b7666'
+ '9c06f1ca0a0323638a7523f0d4dd85a3'
+ '99d421df02cb61b735c998e524889ca6'
+ 'f2d16dd061e09dcc128e944ba74da237'
+ '19d7f3c833d2e689c122729151ba2e02'
+ '06a58b051ef4cf27372ae92f1540a6f5'
+ '3170c0923d01e8f70378d668ac8a2eed'
+ 'be9557bc67ba66c63f565bfcf35f2550'
+ 'fa26bd9b1d54bf67c357d560b0b545bc'
+ 'abf1c846bf3e9216bfaaea0acc0478f1')
+
+package() {
+ cd ${srcdir}/${pkgname}
+
+ # just install tools directory
+ cd tools
+ for file in $(find . -type f -name "*.sh"); do
+ install -Dm755 $file ${pkgdir}/usr/share/${pkgname}/$file
+ done
+
+ for file in $(find bin builtInVMCode builtInChips OS\
+ -name "*.jar"\
+ -or -name "*.html"\
+ -or -name "*.txt"\
+ -or -name "*.vm"\
+ -or -name "*.gif"\
+ -or -name "*.hdl"\
+ -or -name "*.class"); do
+ install -Dm644 $file ${pkgdir}/usr/share/${pkgname}/$file
+ done
+
+ for file in $(find ${srcdir} -name "*.run"); do
+ install -Dm755 $file ${pkgdir}/usr/bin/$(basename ${file%.*})
+ done
+
+ for file in $(find ${srcdir} -name "*.desktop"); do
+ install -Dm644 $file ${pkgdir}/usr/share/applications/${file}
+ done
+}