Package Details: nand2tetris 2.6-5

Git Clone URL: (read-only, click to copy)
Package Base: nand2tetris
Description: Software suite accompanying Nand2Tetris course.
Upstream URL:
Licenses: GPL
Submitter: chadvoegele
Maintainer: chadvoegele
Last Packager: chadvoegele
Votes: 6
Popularity: 0.000000
First Submitted: 2014-01-04 19:46 (UTC)
Last Updated: 2021-09-27 03:27 (UTC)

Dependencies (2)

Required by (0)

Sources (9)

Latest Comments

1 2 3 4 Next › Last »

oconnor663 commented on 2023-02-23 07:50 (UTC)

I've created a GitHub mirror of the course software here:

Here's an example of updating this package to use that mirror, which I think makes the packaging process reliable and fully automatic:

Please let me know if that patch needs any tweaks.

chungy commented on 2021-12-14 20:38 (UTC)

It doesn't seem apparent to me that the prior source was the same as the explicit export URL I suggested, which still works.

In-browser URLs are subject to change, but this one might have a bigger shot shot at remaining stable.

chadvoegele commented on 2021-11-26 13:27 (UTC) (edited on 2021-11-26 13:27 (UTC) by chadvoegele)

@chungy This package used to use something very similar to what you are suggesting but we were having problems with the url changing. See [1] for example and the comment from @cweagans [2].



chungy commented on 2021-10-05 17:51 (UTC)

The Google drive source should be downloadable automatically:

diff --git a/.SRCINFO b/.SRCINFO
index ed38e9b..5ef4c25 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
 pkgbase = nand2tetris
    pkgdesc = Software suite accompanying Nand2Tetris course.
    pkgver = 2.6
-   pkgrel = 5
+   pkgrel = 6
    url =
    arch = any
    license = GPL
    makedepends = unzip
    depends = java-runtime
+   source =
    source =
    source =
    source =
@@ -16,6 +17,7 @@ pkgbase = nand2tetris
    source = n2tVMEmulator.desktop
    source = n2tHardwareSimulator.desktop
    source = n2tAssembler.desktop
+   sha256sums = d2cb160ad64ccb792158907d720976fb4fef8b8610bf9160dca38368153edbd9
    sha256sums = f93e4c08ed6af6a687f8d144598f998a19ac544d9fe6da05c162932d00f6a592
    sha256sums = f05fbcd9d86e7151c2e16682792586fd51086fa4864695ff8600256c15eb83d4
    sha256sums = 838dda39a97694ef1635ebbb0f6aa850623e281f70ef1e699930ee72e4934361
diff --git a/PKGBUILD b/PKGBUILD
index 6dea5d8..c80afa9 100644
@@ -3,14 +3,16 @@

 pkgdesc="Software suite accompanying Nand2Tetris course."
@@ -18,11 +20,9 @@ source=(
-        n2tAssembler.desktop
+        n2tAssembler.desktop)
+            'f93e4c08ed6af6a687f8d144598f998a19ac544d9fe6da05c162932d00f6a592'
@@ -32,22 +32,6 @@ sha256sums=('f93e4c08ed6af6a687f8d144598f998a19ac544d9fe6da05c162932d00f6a592'

-prepare() {
-  if [[ ! -f "${_nand2teris_source}" ]]
-  then
-    echo "Download ${_nand2teris_source} from ${_nand2teris_url} and place in ${srcdir}"
-    exit 1
-  fi
-  echo "d2cb160ad64ccb792158907d720976fb4fef8b8610bf9160dca38368153edbd9  ${_nand2teris_source}" | sha256sum -c --quiet
-  if [[ ! $? -eq 0 ]]
-  then
-    echo "Integrity check failed for ${_nand2teris_source}"
-  fi
-  unzip ${_nand2teris_source}
 package() {
   cd ${srcdir}/${pkgname}

abrahammurciano commented on 2020-10-24 19:16 (UTC)

@chadvoegele idk about @mar04, but my "workflow" is to use yay. So every so often I upgrade my machine with yay, and if you update the pkgrel, it tries to install nand2tetris again because it sees that the pkgrel is newer. So I just tried to upgrade and I got the "error" telling me to download from Therefore it didn't upgrade that package, and nand2tetris will always have a pending update until I download the source again and place it in srcdir. Please bump down the pkgrel, or everyone with this package will always see there is a pending update, even though they have no need to install it again.

chadvoegele commented on 2020-10-24 12:06 (UTC)

@mar04, sure. Curious what is your workflow? I've always used AUR manually, so would have just not updated in this case.

mar04 commented on 2020-10-24 10:20 (UTC)

Please don't bump pkgrel for such trivial changes - there is no need for existing users to update.

chadvoegele commented on 2020-10-24 02:54 (UTC)

Thanks, made your suggested update.

abrahammurciano commented on 2020-10-23 14:19 (UTC)

Amazing, thank you. There is one more thing you might consider. The message printed says to download the "source" however, if you go to the nand2tetris site, there's the standard zip file to download, and further down at the bottom you can also download the actual source. This may confuse users. At first I thought the PKGBUILD was requesting the actual source, but when I checked the PLKGBUILD I saw it was expecting a file with the name Perhaps we can make this clearer in the message by saying something like "... download the file from and move it into $srcdir"

chadvoegele commented on 2020-10-23 03:14 (UTC)

Hi abrahammurciano, thanks for the suggestions! I changed the upstream url to just the homepage. That should be more robust to url changes. As you recommended, I changed to $srcdir.