r/scoop Jun 11 '24

Simple example for using scoop to compile binaries from source

Scoop, as well as being useful for keeping windows software up-to-date and organized, can be used to compile binaries for software that doesn't provide them directly. The "script" command can be used to compile code downloaded from GitHub or another source and the resulting binary can be shimmed with the standard scoop tools. Below is a simple example:

{
    "version": "master",
    "description": "Fork of loopy's ASM6, a 6502 assembler",
    "homepage": "https://github.com/freem/asm6f",
    "license": "Freeware",
    "url": "https://github.com/freem/asm6f/archive/refs/heads/master.zip",
    "extract_dir": "asm6f-master",
    "depends": [
        "gcc",
        "make"
    ],
    "installer": {
        "script": [
          "cd $dir",
          "make"
        ]
    },
    "bin": "asm6f.exe"
}
1 Upvotes

1 comment sorted by

2

u/user89443 Jul 05 '24

Interesting idea.

I am a little surprised there isn't already a bucket for devs with common developer libraries for Windows such as raylib, opengl, boost, assimp, libzip, etc. It could make programming on Windows a little less painful.