Skip to content

Commit

Permalink
feat: include manpages in deb packages
Browse files Browse the repository at this point in the history
  • Loading branch information
iahmadgad committed Dec 11, 2024
1 parent 7121267 commit ce030e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 7 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ cross-build-all:
dev/cross-build --all

# Build termux deb packages. Built packages are stored in: `target/deb/packages/`
deb +ARGS:
deb +ARGS: man-gz
dev/deb {{ARGS}}

# Build termux deb package for native target (in case you are using Termux). Equivalent to: `deb --native`
deb-native:
deb-native: man-gz
dev/deb --native

# Build termux deb packages for all targets. Equivalent to: `deb --all`
deb-all:
deb-all: man-gz
dev/deb --all

# Install tool/s used in build process
Expand Down Expand Up @@ -63,5 +63,9 @@ common-file-path:
man:
cargo build-man

# Build manpages compressed in gz format
man-gz: man
gzip target/manpages/* -k

# Clean cache
mod clean 'justmodules/clean.just'
9 changes: 9 additions & 0 deletions pkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
},
"doc/termux-clock/LICENSE": {
"source": "LICENSE"
},
"share/man/man1/termux-clock.1.gz": {
"source": "target/manpages/termux-clock.1.gz"
}
"share/man/man1/termux-clock-timer.1.gz": {
"source": "target/manpages/termux-clock-timer.1.gz"
}
"share/man/man1/termux-clock-alarm.1.gz": {
"source": "target/manpages/termux-clock-alarm.1.gz"
}
},
"deb_dir": "target/deb/packages"
Expand Down

0 comments on commit ce030e8

Please sign in to comment.