personal collection of packaging helpers
- edit
apktoysto change theAPORTS_DIRECTORYvariable to your aports directory. (you can also pass a custom APORTS_DIRECTORY by setting the variable when calling any of these tools.) - add
source /path/to/apktoysto your bashrc. alternatively, runapktoys <tool>.
note: <package> takes either repository/pkgname (e.g. community/xfce4-weather-plugin) or just pkgname as an argument.
at-newpkg <package> [<package> <package> ...]- takes package names and commits the packages with the given names.at-upgrade <package> [--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 changeat-move <package> <target-repository> [--no-commit]- moves the provided package to the target repository (testing, community, main, unmaintained) and commits the change.at-commit <template> <package> [data] [--amend/-m]- runs a git commit from a given template.<template>is one ofupgrade,move.[data]is used differently depending on the template: forupgradeit's the new version, formoveit's the old repository.- (TODO)
at-lint [<package>]- 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 [<commit>]- 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 [<package>]- installs depends, makedepends and checkdepends for the package. if package name is not provided, assumes name from current working directory.at-uninstall-makedepends [<package>]- uninstalls makedepends installed withat-install-makedepends.at-repoforpkg <package>- returns a string likerepository/pkgname. usually used internally for the other commands, but may be useful in other cases.