An open API service indexing awesome lists of open source software.

https://github.com/knuxify/apktoys

personal collection of Alpine Linux packaging helpers (NOT ANDROID'S APK!)
https://github.com/knuxify/apktoys

Last synced: about 1 year ago
JSON representation

personal collection of Alpine Linux packaging helpers (NOT ANDROID'S APK!)

Awesome Lists containing this project

README

          

# apktoys

personal collection of packaging helpers

## usage

1. edit `apktoys` to change the `APORTS_DIRECTORY` variable to your aports directory. (you can also pass a custom APORTS_DIRECTORY by setting the variable when calling any of these tools.)
2. add `source /path/to/apktoys` to your bashrc. alternatively, run `apktoys `.

## tools

**note**: `` takes either `repository/pkgname` (e.g. `community/xfce4-weather-plugin`) or just `pkgname` as an argument.

* `at-newpkg [ ...]` - takes package names and commits the packages with the given names.
* `at-upgrade [--no-commit]` - sets the pkgver to the provided version, updates the checksum, tries to find a changelog, builds the app and if all succeeds commits the change
* `at-move [--no-commit]` - moves the provided package to the target repository (testing, community, main, unmaintained) and commits the change.
* `at-commit [data] [--amend/-m]` - runs a git commit from a given template. `` is one of `upgrade`, `move`. `[data]` is used differently depending on the template: for `upgrade` it's the new version, for `move` it's the old repository.
* (TODO) `at-lint []` - lints a package and checks for common errors. if no package is provided, assumes current directory. reccomended to set as a pre-commit hook.
* (TODO) `at-commit-lint []` - checks if the commit is correct, i.e. only contains what needs to be contained. if commit is not provided, assumes latest commit. reccomended to set as a post-commit hook.
* `at-install-makedepends []` - installs depends, makedepends and checkdepends for the package. if package name is not provided, assumes name from current working directory.
* `at-uninstall-makedepends []` - uninstalls makedepends installed with `at-install-makedepends`.
* `at-repoforpkg ` - returns a string like `repository/pkgname`. usually used internally for the other commands, but may be useful in other cases.