https://github.com/mufeedali/pkgup
A Python script for easily updating PKGBUILDs.
https://github.com/mufeedali/pkgup
Last synced: 11 months ago
JSON representation
A Python script for easily updating PKGBUILDs.
- Host: GitHub
- URL: https://github.com/mufeedali/pkgup
- Owner: mufeedali
- License: mit
- Created: 2020-01-10T12:38:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T04:54:39.000Z (about 5 years ago)
- Last Synced: 2025-03-30T23:41:11.956Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkgup
A python script for easily updating PKGBUILDs. Made specifically for my packages. Can work for others if PKGBUILD is written accordingly. But it's only suitable for smaller packages with good build systems.
## What pkgup does
- Increases the pkgver and pkgrel to desired values.
- Downloads the source as '.tar.gz'
- Verifies basic integrity (`gzip -t`) and re-downloads if necessary.
- Generates SHA256 checksum of source file.
- Updates PKGBUILD accordingly.
- Updates .SRCINFO accordingly. (`makepkg --printsrcinfo`)
## Dependencies
- `python-tqdm`
- `python-requests`
- `gzip`
- `makepkg` (part of `pacman`, used only for generating `.SRCINFO`)
## What's needed in the PKGBUILD for upgradablity
- It only works with '.tar.gz' source files.
- Your `source` link should use `$pkgver` for downloading the correct version. For example, it can be like:
### Preferred format
The preferred format for `source` is as follows. For projects hosted on GitLab:
```
source=('https://www.gitlab.com/$_author/$_gitname/-/archive/v$pkgver/$_gitname-v$pkgver.tar.gz')
```
For projects hosted on GitHub:
```
source=('https://www.github.com/$_author/$_gitname/releases/archive/v$pkgver.tar.gz')
```
`_author` and `$_gitname` are not absolutely necessary, but recommended.