diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-07-10 10:49:55 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-07-10 10:49:55 +0000 |
| commit | 9ea4e05127e7aaf79a58f98076288b25973e949f (patch) | |
| tree | 38e526e572e48a4c9e9cf08d6d1a6dabacb893c9 /.config/pkgit/repos/musl.lua | |
| parent | dd03d22b6605aa26ceb9d2fbaf9b24c4ceb0e0fb (diff) | |
backup
Diffstat (limited to '.config/pkgit/repos/musl.lua')
| -rw-r--r-- | .config/pkgit/repos/musl.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.config/pkgit/repos/musl.lua b/.config/pkgit/repos/musl.lua new file mode 100644 index 0000000..df535af --- /dev/null +++ b/.config/pkgit/repos/musl.lua @@ -0,0 +1,29 @@ +return { + url = "https://git.musl-libc.org/git/musl", + targets = { + default = { + build = function() + config_cmd = "./configure --bindir="..install_directories.bin.." --libdir="..install_directories.lib.." --includedir="..install_directories.include.." --syslibdir="..install_directories.lib + e, h, c = os.execute(config_cmd) + if c ~= 0 then + print("Configuration Failure: ", c, type(c)) + print("GIVEN UP") + return c + end + e,h,c = os.execute("make") + if c ~= 0 then + print("Compilation Error: ", c, type(c)) + print("GIVEN UP") + return c + end + return 0 + end, + install = function() + return os.execute("make DESTDIR=" .. prefix .. " install") + end, + uninstall = function() + return os.execute("make DESTDIR=" .. prefix .. " uninstall") + end, + }, + }, +} |
