diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-06-01 16:22:10 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-06-01 19:03:25 -0500 |
commit | 7201e443e19b45a2feb24ef470c6380b0859e52f (patch) | |
tree | 6c5fc66926db06faa29101cb8f57793ed9e9ba2c /pkg/archlinux/projectr-bin | |
parent | eaf5c71873705b9593ec0e6b34d7e529d74a9269 (diff) |
build: improve build tooling and add CD
Implement a xtask pattern tool for packaging into distributable. Add
build script to generate completion scripts and man page.
Improve PKGBUILDs and CI to use new tooling and upload artifact to tag
after successful CI build.
Make minor changes in cli config to facilitate the new build.rs script.
Diffstat (limited to 'pkg/archlinux/projectr-bin')
-rw-r--r-- | pkg/archlinux/projectr-bin/PKGBUILD | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/pkg/archlinux/projectr-bin/PKGBUILD b/pkg/archlinux/projectr-bin/PKGBUILD index 7ad2558..90f9fd6 100644 --- a/pkg/archlinux/projectr-bin/PKGBUILD +++ b/pkg/archlinux/projectr-bin/PKGBUILD @@ -7,19 +7,25 @@ pkgdesc="A contextual, MRU sorted, project finder." arch=("x86_64") url="https://git.sr.ht/~tobyvin/projectr" license=('MIT') -optdepends=('fzf: tmux-projectr support' 'tmux: tmux-projectr support') -provides=('projectr' 'tmux-projectr') -conflicts=('projectr' 'tmux-projectr') +optdepends=('tmux-projectr: fzf tmux support') +provides=("${pkgname%-bin}=$pkgver") +conflicts=("${pkgname%-bin}=$pkgver") source_x86_64=("https://git.sr.ht/~tobyvin/projectr/refs/download/v$pkgver/projectr-$pkgver-$CARCH.tar.gz") sha256sums_x86_64=('20e1ce1a4c39abead71c4a6e01b2b2da8c595c5170165762d58a43b40354471d') - package() { - cd "$srcdir/" + cd "$srcdir/${pkgname%-bin}" + + install -Dm755 "target/release/${pkgname%-bin}" "$pkgdir/usr/bin/${pkgname%-bin}" + + install -Dm644 "completion/_${pkgname%-bin}" "$pkgdir/usr/share/zsh/site-functions/_${pkgname%-bin}" + install -Dm644 "completion/${pkgname%-bin}" "$pkgdir/usr/share/bash-completion/completions/${pkgname%-bin}" + install -Dm644 "completion/${pkgname%-bin}.fish" "$pkgdir/usr/share/fish/vendor_completions.d/${pkgname%-bin}.fish" + + install -Dm644 "man/${pkgname%-bin}.1" "$pkgdir/usr/share/man/man1/${pkgname%-bin}.1" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-bin}/LICENSE" - install -Dm755 "projectr" "$pkgdir/usr/bin/projectr" - install -Dm755 "tmux-projectr" "$pkgdir/usr/bin/tmux-projectr" - install -Dm644 "README.md" "$pkgdir/usr/share/doc/projectr/README.md" - install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/projectr/LICENSE" - install -Dm644 "CHANGELOG.md" "$pkgdir/usr/share/doc/projectr/CHANGELOG.md" + install -Dm644 README.md "$pkgdir/usr/share/doc/${pkgname%-bin}/README.md" + install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/${pkgname%-bin}/CHANGELOG.md" } |