https://github.com/archstrike/pkgupdates
An update checking system for the ArchStrike repo
https://github.com/archstrike/pkgupdates
Last synced: about 1 year ago
JSON representation
An update checking system for the ArchStrike repo
- Host: GitHub
- URL: https://github.com/archstrike/pkgupdates
- Owner: ArchStrike
- License: mit
- Created: 2015-08-21T16:41:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T02:55:15.000Z (over 3 years ago)
- Last Synced: 2025-04-18T19:41:00.353Z (about 1 year ago)
- Language: Shell
- Size: 831 KB
- Stars: 6
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ArchStrike Package Updates
To keep packages up-to-date, `pkgupdates` automates a `GET` request to the upstream url, matching the version regex given a valid response, and comparing the upstream version to the ArchStrike repository.
## Dependencies
```sh
git clone git@github.com:ArchStrike/archversion-envconfig-git.git
cd archversion-envconfig-git/
alias build='arch-nspawn ${CHROOT}/root pacman -Syu; makechrootpkg -c -r ${CHROOT} -- -i'
build
sudo pacman -U archversion-envconfig-git-*-any.pkg.tar.zst
sudo pacman -S curl git pacman sqlite tar python-gitpython python-systemd
```
By installing `archversion-envconfig-git`, the dependency `pyalpm` is satisfied for `bin/pkgupdates-maintenace`.
## Maintenance Basics
The file `archversion.conf` defines a upstream URL, version regex, and a Python expression for each package. The file `develversion.conf` defines the vcs package list. After updating `archversion.conf` or `develversion.conf` for a package, verify your changes work as expected.
```
pkgupdates-sync -cdn +pkgname
```
For `pkgupdates-sync`, the `-x` option will display more examples of how to do custom version checks. The script `bin/cron-pkgupdates` will function better as a cron job than the underlying `pkgupdates`.
The `pkgupdates` script calls both `pkgupdates-sync` and `pkgupdates-maintenance`. To bucket missing packages by URL response code, run `pkgupdates-maintenance --resolve`.