Added manpage.

* Added a simple manpage
* Updated PKGBUILD to install manpage.

Signed-off-by: Kolaer <overlordin777@gmail.com>
This commit is contained in:
Kolaer
2020-05-06 13:28:22 +04:00
parent 28902116a5
commit da70fc34ed
3 changed files with 62 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: s3rius <win10@list.com>
pkgname=awatch
pkgver=0.1.0
pkgver=0.3.1
pkgrel=2
pkgdesc="Anime watcher."
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
@ -10,16 +10,17 @@ options=(!emptydirs)
depends=()
makedepends=(
'rust'
'cargo'
)
build() {
cd "$startdir/"
pwd
cargo build --release
gzip -c docs/awatch.1 > docs/awatch.1.gz
}
package() {
mkdir -p "$pkgdir/usr/bin"
cp "$startdir/target/release/awatch" "$pkgdir/usr/bin"
install -Dm 755 "$startdir/target/release/awatch" -t "$pkgdir/usr/bin"
install -Dm 755 "$startdir/docs/awatch.1.gz" -t "$pkgdir/usr/share/man/man1"
}