Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinokada/spt
A Bash script for Simple Debian Tool.
https://github.com/shinokada/spt
bash-script cli debian debian-packaging package-manager ubuntu
Last synced: about 1 month ago
JSON representation
A Bash script for Simple Debian Tool.
- Host: GitHub
- URL: https://github.com/shinokada/spt
- Owner: shinokada
- License: mit
- Created: 2021-10-09T06:19:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T05:31:27.000Z (9 months ago)
- Last Synced: 2024-05-01T19:50:03.698Z (8 months ago)
- Topics: bash-script, cli, debian, debian-packaging, package-manager, ubuntu
- Language: Shell
- Homepage: https://spt.codewithshin.com
- Size: 63.5 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Pacakge Tool (SPT)
## Overview
This generates a basic DEBIAN package from Github-name/repo-name.
[Read more details here.](https://betterprogramming.pub/how-to-create-a-basic-debian-package-927be001ad80)
## Requirement
- Linux/Debian
- curl
- dpkgDebian/Ubuntu should have it. If not install it using apt.
```sh
$ sudo apt install dpkg
```- GitHub CLI `gh`
## Installation
Download the latest debian package from the [releases](https://github.com/shinokada/spt/releases) page.
Run:
```sh
sudo apt install spt_XXXXX-X_XXX.deb
```## Usage
1. Create a pre-deb package
```sh
$ spt create shinokada/teffects
```Use the `-c` or `--code` option to open the created pre-package in VSCode. When you save it, it will ask you the permission since the files' owner is the root.
2. Update the pre-deb package
```sh
$ code $HOME/.cache/spt/pkg/yourRepo_1.0.1-1_all
```a. Update Depends in `DEBIAN/control`.
If you are using vim:
```sh
$ vim $HOME/.cache/spt/pkg/yourRepo_1.0.1-1_all/DEBIAN/control
```b. Update script_dir in `usr/bin/your-script`.
```bash
script_dir="/usr/share/teffects"
```3. Run `spt generate` to create a debian package.
4. Upload it to GitHub.
5. You can install it locally using the `spt install` command.```sh
$ spt install
```Or install it manually:
```sh
$ sudo apt install /home/yourname/.cache/spt/deb/debian-package-name
```## Author
Shinichi Okada
## License
Please see license.txt.