Skip to content

Commit

Permalink
[contrib/pkgbuild] Fix man-page install paths
Browse files Browse the repository at this point in the history
Signed-off-by: Shinyzenith <[email protected]>
  • Loading branch information
Shinyzenith committed Jul 29, 2022
1 parent 538caac commit 72e1041
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions contrib/PKGBUILD/bin/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
pkgname=wayshot-bin
_pkgname=wayshot
pkgver=1.1.9
pkgrel=1
pkgrel=2
pkgdesc="A screenshot tool for wlroots compositors."
url="https://github.com/waycrate/wayshot"
license=('BSD')
arch=('x86_64')
optdepends=('slurp: for area selection')
makedepends=('scdoc')
provides=('wayshot-bin')
conflicts=('wayshot-git' 'wayshot-musl-git')
source=("$_pkgname-bin::$url/releases/download/$pkgver/$_pkgname"
Expand All @@ -25,6 +26,6 @@ build() {

package() {
install -Dm 755 $_pkgname-bin "$pkgdir/usr/bin/$_pkgname"
install -Dm 644 ./$_pkgname-src/docs/*.1.gz "$pkgdir/usr/share/man/man1"
install -Dm 644 ./$_pkgname-src/docs/*.7.gz "$pkgdir/usr/share/man/man7"
install -Dm 644 ./$_pkgname-src/docs/wayshot.1.gz "$pkgdir/usr/share/man/man1/wayshot.1.gz"
install -Dm 644 ./$_pkgname-src/docs/wayshot.7.gz "$pkgdir/usr/share/man/man7/wayshot.7.gz"
}
6 changes: 3 additions & 3 deletions contrib/PKGBUILD/git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Aakash Sharma <[email protected]>
pkgname='wayshot-git'
_pkgname="wayshot"
pkgver=1.1.9.94.g2ac76bc
pkgver=1.1.9.98.g538caac
pkgrel=1
arch=('x86_64')
url="https://git.sr.ht/~shinyzenith/wayshot"
Expand All @@ -21,8 +21,8 @@ build(){
package() {
cd "$_pkgname"
install -Dm 755 ./target/release/wayshot "$pkgdir/usr/bin/wayshot"
install -Dm 644 ./docs/*.1.gz "$pkgdir/usr/share/man/man1"
install -Dm 644 ./docs/*.7.gz "$pkgdir/usr/share/man/man7"
install -Dm 644 ./docs/wayshot.1.gz "$pkgdir/usr/share/man/man1/wayshot.1.gz"
install -Dm 644 ./docs/wayshot.7.gz "$pkgdir/usr/share/man/man7/wayshot.7.gz"
}

pkgver() {
Expand Down

0 comments on commit 72e1041

Please sign in to comment.