Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-packages/blob/main/aur/PKGBUILD # omega-packages aien-dev/omega-packages Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-packages / aur / PKGBUILD` 34 lines ยท 1259 bytes Raw Blame History 1 # Maintainer: Drake Stapleton 2 # omc, the Omega compiler, born from the 408-byte hand-written seed of aien-dev/omega-mv. 3 # The build runs only seed programs plus sh, printf, sed, stat, cmp and sha256sum; no compiler. 4 pkgname=omc 5 _commit=`e5b32567a7aff3ce594e3254a622a846a6cd190b` 6 _omcsha256=`2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f` 7 pkgver=0.0.0+git.`e5b32567` 8 pkgrel=1 9 pkgdesc='Omega compiler, born from a 408-byte hand-written seed (AArch64 Linux only)' 10 arch=('aarch64') 11 url='https://github.com/aien-dev/omega-mv' 12 license=('Apache-2.0') 13 options=('!strip' '!debug') 14 source=("omega-mv-${_commit}.tar.gz::https://github.com/aien-dev/omega-mv/archive/${_commit}.tar.gz") 15 sha256sums=('`c621b6cefe728d67a1a253a9d8991495406460d365dd91ea356451eb2254a95c`') 16 17 build() { 18 cd "omega-mv-${_commit}" 19 sh seed/omega-from-seed.sh 20 echo "${_omcsha256} seed/out/omc" | sha256sum -c - 21 } 22 23 check() { 24 cd "omega-mv-${_commit}" 25 printf 'global out uchar 4\nfn main to int\nput out 0 111\nput out 1 107\nput out 2 10\nw = write 1 out 0 3\nret 0\nend\n' > hello.om 26 ./seed/out/omc < hello.om > hello 27 chmod +x hello 28 test "$(./hello)" = ok 29 } 30 31 package() { 32 cd "omega-mv-${_commit}" 33 install -Dm755 seed/out/omc "${pkgdir}/usr/bin/omc" 34 }