Skip to content

Commit 9279335

Browse files
committed
[arch] install the man page in addition to the binary
1 parent 153c72d commit 9279335

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
1+
pkg/aur/*/
2+
*.gz
3+
*.xz
24
# Created by https://www.gitignore.io/api/linux,vim,rust
35
# Edit at https://www.gitignore.io/?templates=linux,vim,rust
46

pkg/aur/PKGBUILD

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: Aru Sahni <aru@arusahni.net>
22
pkgname=git-req
3-
pkgver=2.0.1
3+
pkgver=2.2.0rc.2
44
pkgrel=1
55
epoch=
66
pkgdesc="Switch between merge/pull requests in your GitLab and GitHub repositories with just the request ID."
@@ -21,7 +21,7 @@ install=
2121
changelog=
2222
source=("$pkgname-$pkgver.tar.gz::https://github.com/arusahni/$pkgname/archive/v$pkgver.tar.gz")
2323
noextract=()
24-
sha256sums=('015a5017f1d8dffc2582a10936ad3420c525f6d462e7bb9da13984ecd79f574f')
24+
sha256sums=('d4929b9215bc40236ebee9b5b495aab9cea7ac624dabe04a16af53948768555f')
2525
validpgpkeys=()
2626

2727
build() {
@@ -37,6 +37,7 @@ check() {
3737
package() {
3838
cd "$pkgname-$pkgver"
3939
cargo install --root "${pkgdir}"/usr --path "${srcdir}/${pkgname}-${pkgver}"
40+
install -D -m644 "${srcdir}/${pkgname}-${pkgver}/target/release/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
4041
# Random metadata file created by cargo. See https://github.com/rust-lang/cargo/issues/6797
4142
rm "${pkgdir}"/usr/.crates.toml
4243
}

0 commit comments

Comments
 (0)