summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-12-03 08:29:35 -0700
committerMark Wagie2020-12-03 08:29:35 -0700
commit474a4dee5909dea65512a377cdf4609091560066 (patch)
treeecacaccd64fe4bf47775a7174f93dc7faf19614c
parent139761cdfbd0bcb1aa750fbf7993ee4d6ea55f7e (diff)
downloadaur-474a4dee5909dea65512a377cdf4609091560066.tar.gz
compress man page
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c799841df0f9..e418fcb00722 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cheat
pkgdesc = Allows you to create and view interactive cheatsheets on the command-line
pkgver = 4.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/cheat/cheat
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index d1e3d6cef719..8f57faf8d5fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Bogdan <d0xi at inbox dot ru>
pkgname=cheat
pkgver=4.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Allows you to create and view interactive cheatsheets on the command-line"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/cheat/cheat"
@@ -40,6 +40,7 @@ build() {
# Generate man page
pandoc -s -t man "doc/$pkgname.1.md" -o "doc/$pkgname.1"
+ gzip "doc/$pkgname.1"
# Clean mod cache for makepkg -C
go clean -modcache
@@ -57,7 +58,7 @@ package() {
install -Dm755 "scripts/$pkgname.zsh" "$pkgdir/usr/share/doc/$pkgname/_$pkgname"
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/$pkgname-LICENSE"
- install -Dm644 "doc/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
+ install -Dm644 "doc/$pkgname.1.gz" -t "$pkgdir/usr/share/man/man1"
install -dm755 "$pkgdir/usr/share/$pkgname/cheatsheets/community"
find "$srcdir/cheatsheets" \