A package manager. Nothing special. https://maxwellj.xyz/mapm
Go to file
2024-09-09 09:23:43 +10:00
src/main/kotlin Rely on .tar.xz's for packages now, autoverify 2024-09-08 15:13:13 +10:00
.gitignore Rely on .tar.xz's for packages now, autoverify 2024-09-08 15:13:13 +10:00
build.gradle.kts Adjust version and package 2024-09-09 09:23:43 +10:00
LICENSE Add license 2024-08-28 13:35:19 +10:00
README.md Update README.md 2024-09-09 09:19:04 +10:00
settings.gradle.kts Initial commit 2024-08-28 13:29:10 +10:00

Mapm. Max's Package Manager.

What is Mapm?

Mapm is a package manager (written in Kotlin) for, you know, managing packages. So far it's VERY early in development. Mapm is designed to run on the JVM, while using a UNIX-like system.

Why?

No reason. :)

Setup

Make directories /usr/mapm and /usr/mapm/tmp. Add /usr/mapm to path. Download the files and make sure Gradle is installed. Run gradle distTar to compile a Tar file with all the needed Jars in it, including mapm. Untar the archive in build/distributions. Run ./(where tar extracted to)/bin/mapm. (or mapm.bat if you're crazy)

Usage

Run mapm. For now, command line arguments aren't supported, but this is planned for a later date. Once you're in mapm, you can type grab and press enter. Type the thing you want and it will download.

Making a mapm package

To make a mapm package, go to https://git.maxwellj.xyz/mapm/stable and submit a pull request. Add your package's name as the file name, and the link to where your package is stored as the contents. Don't add anything more or you'll confuse mapm. Make sure the link points to a .tar.xz archive. The file structure should be like this:

├── (packagename) (A symbolic link to your executable in packagename.d)
└── (packagename).d
    ├── executable
    └── Any other files your package needs

Zip all that up into a .tar.xz file, upload it to your server and add the link to your pull request. After creating the .tar.xz, use Mapm to create a checksum for the file. Run mapm, type checksum, press enter and type the file path. Press enter and copy the checksum to (packagename).hash inside your pull request.

Making your own repo

For now, this isn't a thing, but you'll be able to when configuration is a thing.