Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ci/github-actions/generate-pkgbuild.py3
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ for line in open('checksums/sha1sum.txt').readlines():

maintainer = '# Maintainer: Hoàng Văn Khải <hvksmr1996@gmail.com>\n'
readme_url = f'https://raw.githubusercontent.com/KSXGitHub/parallel-disk-usage/{release_tag}/README.md'
usage_url = f'https://raw.githubusercontent.com/KSXGitHub/parallel-disk-usage/{release_tag}/USAGE.md'
license_url = f'https://raw.githubusercontent.com/KSXGitHub/parallel-disk-usage/{release_tag}/LICENSE'

opening = maintainer + '\n# This file is automatically generated. Do not edit.\n'
Expand Down Expand Up @@ -51,7 +52,7 @@ with open('./pkgbuild/parallel-disk-usage-bin/PKGBUILD', 'w') as pkgbuild:
for ext in supported_completions
)
man_page_source = f'pdu.{release_tag}.1::{source_url_prefix}/pdu.1'
content += f'source=(pdu-{checksum}::{source_url} {completion_source} {man_page_source} {readme_url} {license_url})\n'
content += f'source=(pdu-{checksum}::{source_url} {completion_source} {man_page_source} {readme_url} {usage_url} {license_url})\n'
content += f'_checksum={checksum}\n'
completion_checksums = ' '.join('SKIP' for _ in supported_completions)
content += f'_completion_checksums=({completion_checksums})\n'
Expand Down
2 changes: 2 additions & 0 deletions template/parallel-disk-usage-bin/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ sha1sums=(
"${_completion_checksums[@]}" # for the completion files
SKIP # for the man page
SKIP # for the readme file
SKIP # for the usage file
SKIP # for the license file
)

package() {
install -Dm755 "pdu-$_checksum" "$pkgdir/usr/bin/pdu"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 USAGE.md "$pkgdir/usr/share/doc/$pkgname/USAGE.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "completion.$pkgver.bash" "$pkgdir/usr/share/bash-completion/completions/pdu"
install -Dm644 "completion.$pkgver.fish" "$pkgdir/usr/share/fish/completions/pdu.fish"
Expand Down
1 change: 1 addition & 0 deletions template/parallel-disk-usage/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package() {
cd "$srcdir/parallel-disk-usage-$pkgver"
install -Dm755 target/release/pdu "$pkgdir/usr/bin/pdu"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 USAGE.md "$pkgdir/usr/share/doc/$pkgname/USAGE.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 exports/completion.bash "$pkgdir/usr/share/bash-completion/completions/pdu"
install -Dm644 exports/completion.fish "$pkgdir/usr/share/fish/completions/pdu.fish"
Expand Down
Loading