summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Strandin2016-05-22 12:23:49 +0200
committerAuguste Pop2016-06-06 23:40:11 +0800
commit7853f8e5daf7dec7807a18cfe8c2a3d0857be277 (patch)
tree86dbaf57f632cbdc0a56d5cd96430acfe0d2762f
parent923380371744680546a4b0473b4f34dfaf53b644 (diff)
downloadaur-7853f8e5daf7dec7807a18cfe8c2a3d0857be277.tar.gz
Add a man page
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD10
-rw-r--r--pkgcacheclean.840
3 files changed, 51 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a73609a0c56..dd25d8a86cf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Mon Feb 1 15:39:48 UTC 2016
+# Sun May 22 10:49:08 UTC 2016
pkgbase = pkgcacheclean
pkgdesc = Application to clean the pacman cache
pkgver = 1.8.2
- pkgrel = 3
+ pkgrel = 4
url = https://bbs.archlinux.org/viewtopic.php?pid=841774
arch = i686
arch = x86_64
@@ -13,7 +13,9 @@ pkgbase = pkgcacheclean
license = GPL
depends = pacman>=5
source = pkgcacheclean.c
+ source = pkgcacheclean.8
md5sums = d79fac7e27381249774fc8e6f15d7f2e
+ md5sums = 965889f755e4611c12f8c9ac0048372d
pkgname = pkgcacheclean
diff --git a/PKGBUILD b/PKGBUILD
index 0ff20dac779..843b9baf0db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,27 @@
pkgname=pkgcacheclean
pkgver=1.8.2
-pkgrel=3
+pkgrel=4
pkgdesc="Application to clean the pacman cache"
arch=('i686' 'x86_64' 'armv5' 'armv6' 'armv7')
url='https://bbs.archlinux.org/viewtopic.php?pid=841774'
license=('GPL')
depends=('pacman>=5')
-source=($pkgname.c)
-md5sums=('d79fac7e27381249774fc8e6f15d7f2e')
+source=($pkgname.c
+ $pkgname.8)
+md5sums=('d79fac7e27381249774fc8e6f15d7f2e'
+ '965889f755e4611c12f8c9ac0048372d')
build()
{
cd "$srcdir"
gcc -o $pkgname $CFLAGS -DVERSION=\"$pkgver\" -DCARCH=\"$CARCH\" \
$pkgname.c -lalpm $LDFLAGS
+ gzip --keep --force $pkgname.8
}
package()
{
install -m 755 -D "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -m 644 -D "$srcdir/$pkgname.8.gz" "$pkgdir/usr/share/man/man8/$pkgname.8.gz"
}
diff --git a/pkgcacheclean.8 b/pkgcacheclean.8
new file mode 100644
index 00000000000..d2d1c5e125a
--- /dev/null
+++ b/pkgcacheclean.8
@@ -0,0 +1,40 @@
+.TH pkgcacheclean 8 "2016-05-22" "pkgcacheclean 1.8.2" "pkgcacheclean manual"
+.SH NAME
+pkgcacheclean \- a simple utility to clean pacman cache
+.SH SYNOPSIS
+.B pkgcacheclean
+[option...] [preserve_number]
+.SH DESCRIPTION
+For installed packages, \fIpreserve_number\fR of versions are reserved. This
+includes the current version and the newest (\fIpreserve_number\fR - 1) of the
+remaining. For uninstalled packages all versions are deleted. The default
+number is 2.
+.SH OPTIONS
+.TP
+\-n, \-\-dry-run
+Perform a trial run with no changes made
+.TP
+\-d, \-\-cachedir=PATH
+Set alternative (absolute) cache directory PATH. Default is /var/cache/pacman/pkg/
+.TP
+\-k, \-\-all\-as\-installed
+Treat not-installed packages as installed
+.TP
+\-v, \-\-verbose
+Verbose output
+.TP
+\-q, \-\-quiet
+Suppress output, default
+.TP
+\-?, \-\-help
+Give a help list
+.TP
+\-\-usage
+Give a short usage message
+.TP
+\-V, \-\-version
+Print program version
+.SH EXAMPLES
+.TP
+Do a verbose dry-run for cleaning up all but the latest 3 versions:
+.B pkgcacheclean -nv 3