summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée2016-06-24 14:52:56 +0200
committerMattias Andrée2016-06-24 14:52:56 +0200
commit4952523d1be0c0e402c28b1b48acebff5aa6c213 (patch)
tree2a751f350fbdea104e19efe842314b7c4bb2dec1
downloadaur-argparser-doc.tar.gz
Initial import, version 5.1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD25
-rw-r--r--argparser.install20
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ffc4b4d042a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Fri Jun 24 12:52:56 UTC 2016
+pkgbase = argparser-doc
+ pkgdesc = Command line argument parser library, like getopt, except better. Documentation.
+ pkgver = 5.1
+ pkgrel = 1
+ url = https://github.com/maandree/argparser
+ install = argparser.install
+ arch = any
+ license = FDL1.3
+ makedepends = coreutils
+ makedepends = sed
+ makedepends = texinfo
+ source = https://github.com/maandree/argparser/archive/5.1.tar.gz
+ sha256sums = 10cbff3d7c17d5c8e99dab20e5b425e1da7625dd4090d6c904c944b8bb64195f
+
+pkgname = argparser-doc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a95efbc892a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+
+pkgname=argparser-doc
+pkgver=5.1
+pkgrel=1
+pkgdesc="Command line argument parser library, like getopt, except better. Documentation."
+arch=('any')
+url="https://github.com/maandree/argparser"
+license=('FDL1.3')
+makedepends=('coreutils' 'sed' 'texinfo')
+install=argparser.install
+source=("${url}/archive/${pkgver}.tar.gz")
+sha256sums=('10cbff3d7c17d5c8e99dab20e5b425e1da7625dd4090d6c904c944b8bb64195f')
+
+
+build() {
+ cd "${srcdir}/argparser-${pkgver}"
+ make DESTDIR="$pkgdir" doc
+}
+
+package() {
+ cd "${srcdir}/argparser-${pkgver}"
+ make DESTDIR="$pkgdir" install-doc
+}
+
diff --git a/argparser.install b/argparser.install
new file mode 100644
index 00000000000..a6418e3d69b
--- /dev/null
+++ b/argparser.install
@@ -0,0 +1,20 @@
+_file="argparser"
+
+infodir="usr/share/info"
+file="${_file}.info"
+
+
+post_install() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+