Added debian package

This commit is contained in:
Mattia Mascarello 2024-05-06 12:15:26 +02:00
parent 49dd22f356
commit 8c4fb9eb95
6 changed files with 52 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.deb
deb/usr

1
CHANGELOG Normal file
View File

@ -0,0 +1 @@
0.1 First Release

2
COPYRIGHT Normal file
View File

@ -0,0 +1,2 @@
Copyright: 2024 Mattia Mascarello <mattia.mascarello@edu.unito.it>
License: MIT

27
Makefile Executable file
View 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

View File

@ -9,6 +9,16 @@ Sleep Until is a Bash script that allows you to suspend execution until a specif
## 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
2. `chmod +x install.sh` (make it executable)
3. Run `./install.sh`. This will install the script system-wide

10
deb/DEBIAN/control Executable file
View 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)