Added debian package
This commit is contained in:
parent
49dd22f356
commit
8c4fb9eb95
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*.deb
|
||||||
|
deb/usr
|
2
COPYRIGHT
Normal file
2
COPYRIGHT
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Copyright: 2024 Mattia Mascarello <mattia.mascarello@edu.unito.it>
|
||||||
|
License: MIT
|
27
Makefile
Executable file
27
Makefile
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
all: sleepuntil.0.1-1_all.deb
|
||||||
|
|
||||||
|
sleepuntil.0.1-1_all.deb: deb/usr/share/man/man1/sleepuntil.1.gz deb/usr/bin/sleepuntil deb/DEBIAN/control deb/usr/share/doc/sleepuntil/copyright deb/usr/share/doc/sleepuntil/changelog.gz
|
||||||
|
dpkg-deb --root-owner-group --build deb sleepuntil.0.1-1_all.deb
|
||||||
|
lintian sleepuntil.0.1-1_all.deb
|
||||||
|
|
||||||
|
deb/usr/share/man/man1/sleepuntil.1.gz: sleepuntil.1
|
||||||
|
mkdir -p deb/usr/share/man/man1
|
||||||
|
gzip -n -9 -k sleepuntil.1
|
||||||
|
mv sleepuntil.1.gz deb/usr/share/man/man1/sleepuntil.1.gz
|
||||||
|
|
||||||
|
deb/usr/bin/sleepuntil: sleepuntil
|
||||||
|
mkdir -p deb/usr/bin/
|
||||||
|
cp sleepuntil deb/usr/bin/sleepuntil
|
||||||
|
|
||||||
|
deb/usr/share/doc/sleepuntil/copyright: COPYRIGHT
|
||||||
|
mkdir -p deb/usr/share/doc/sleepuntil
|
||||||
|
cp COPYRIGHT deb/usr/share/doc/sleepuntil/copyright
|
||||||
|
|
||||||
|
deb/usr/share/doc/sleepuntil/changelog.gz: CHANGELOG
|
||||||
|
mkdir -p deb/usr/share/doc/sleepuntil
|
||||||
|
gzip -n -9 -k CHANGELOG
|
||||||
|
mv CHANGELOG.gz deb/usr/share/doc/sleepuntil/changelog.gz
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf deb/usr
|
||||||
|
|
10
README.md
10
README.md
|
@ -9,6 +9,16 @@ Sleep Until is a Bash script that allows you to suspend execution until a specif
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
### Debian-based systems
|
||||||
|
|
||||||
|
Grab the latest release from the [releases page](https://github.com/MatMasIt/sleepuntil/releases) and install it with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo dpkg -i sleepuntil*.deb
|
||||||
|
```
|
||||||
|
|
||||||
|
### Manual installation
|
||||||
|
|
||||||
1. Clone this repository
|
1. Clone this repository
|
||||||
2. `chmod +x install.sh` (make it executable)
|
2. `chmod +x install.sh` (make it executable)
|
||||||
3. Run `./install.sh`. This will install the script system-wide
|
3. Run `./install.sh`. This will install the script system-wide
|
||||||
|
|
10
deb/DEBIAN/control
Executable file
10
deb/DEBIAN/control
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
Package: sleepuntil
|
||||||
|
Version: 0.1
|
||||||
|
Section: utils
|
||||||
|
Priority: optional
|
||||||
|
Architecture: all
|
||||||
|
Maintainer: Mattia Mascarello <mattia.mascarello@edu.unito.it>
|
||||||
|
Description: sleeps until a specified datetime
|
||||||
|
sleepuntil is a simple utility to sleep until the specified datetime
|
||||||
|
without having to compute manually the sleep time
|
||||||
|
Depends: bash (>= 2.04)
|
Loading…
Reference in New Issue
Block a user