summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonne Haß2015-07-17 11:43:37 +0200
committerJonne Haß2015-07-17 11:43:37 +0200
commit2e23bcbe865d3c6483cbca7e4d60c207f1ee671d (patch)
tree6d3be7c94818301d241871f74c5f4cd0d75e6a75
parentb4b8f15f0454d80affd9de20efd6e9b59e3f29b5 (diff)
downloadaur-2e23bcbe865d3c6483cbca7e4d60c207f1ee671d.tar.gz
snazzer-git: install manpages
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 12f62dbd796..54bfdf8a095 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = snazzer-git
pkgdesc = btrfs snapshotting and backup system offering snapshot measurement, transport and pruning.
pkgver = r146.8d85449
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/csirac2/snazzer
arch = any
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 8d880c46f15..5c06b539638 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Jonne Haß <me@jhass.eu>
pkgname=snazzer-git
pkgver=r146.8d85449
-pkgrel=1
+pkgrel=2
pkgdesc="btrfs snapshotting and backup system offering snapshot measurement, transport and pruning. "
arch=('any')
url="https://github.com/csirac2/snazzer"
@@ -16,7 +16,13 @@ pkgver() {
package() {
cd "$srcdir/snazzer"
- install -Dm755 -t "$pkgdir/usr/bin/$script" snazzer snazzer-measure snazzer-prune-candidates snazzer-receive snazzer-send-wrapper
+
+ for script in snazzer snazzer-measure snazzer-prune-candidates snazzer-receive snazzer-send-wrapper; do
+ install -Dm755 "$script" "$pkgdir/usr/bin/$script"
+ pod2man --release="$pkgver" "$srcdir/snazzer/$script" > "${script}.1"
+ gzip -f "${script}.1"
+ install -Dm644 "${script}.1.gz" "$pkgdir/usr/share/man/man1/${script}.1.gz"
+ done
install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
install -dm755 "$pkgdir/usr/share/doc/$pkgname"
cp -av doc/* "$pkgdir/usr/share/doc/$pkgname"