From 72a4f4f2795bb22808229ca7ce1bec1de2823d98 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 24 Jun 2016 14:55:33 +0200 Subject: Add argparser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- argparser-bash/PKGBUILD | 24 ++++++++++++++++++++++++ argparser-bash/upload | 1 + argparser-c/PKGBUILD | 24 ++++++++++++++++++++++++ argparser-c/upload | 1 + argparser-doc/PKGBUILD | 25 +++++++++++++++++++++++++ argparser-doc/argparser.install | 20 ++++++++++++++++++++ argparser-doc/upload | 1 + argparser-java/PKGBUILD | 24 ++++++++++++++++++++++++ argparser-java/upload | 1 + argparser-python/PKGBUILD | 26 ++++++++++++++++++++++++++ argparser-python/upload | 1 + argparser/PKGBUILD | 16 ++++++++++++++++ argparser/upload | 1 + 13 files changed, 165 insertions(+) create mode 100644 argparser-bash/PKGBUILD create mode 120000 argparser-bash/upload create mode 100644 argparser-c/PKGBUILD create mode 120000 argparser-c/upload create mode 100644 argparser-doc/PKGBUILD create mode 100644 argparser-doc/argparser.install create mode 120000 argparser-doc/upload create mode 100644 argparser-java/PKGBUILD create mode 120000 argparser-java/upload create mode 100644 argparser-python/PKGBUILD create mode 120000 argparser-python/upload create mode 100644 argparser/PKGBUILD create mode 120000 argparser/upload diff --git a/argparser-bash/PKGBUILD b/argparser-bash/PKGBUILD new file mode 100644 index 0000000..f3003b8 --- /dev/null +++ b/argparser-bash/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=argparser-bash +pkgver=5.1 +pkgrel=1 +pkgdesc="Command line argument parser library, like getopt, except better. Bash version." +arch=('any') +url="https://github.com/maandree/argparser" +license=('AGPL3') +makedepends=('coreutils' 'sed') +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('10cbff3d7c17d5c8e99dab20e5b425e1da7625dd4090d6c904c944b8bb64195f') + + +build() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" bash +} + +package() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" install-bash install-license +} + diff --git a/argparser-bash/upload b/argparser-bash/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/argparser-bash/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/argparser-c/PKGBUILD b/argparser-c/PKGBUILD new file mode 100644 index 0000000..60cb0a8 --- /dev/null +++ b/argparser-c/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=argparser-c +pkgver=5.1 +pkgrel=1 +pkgdesc="Command line argument parser library, like getopt, except better. C version." +arch=('any') +url="https://github.com/maandree/argparser" +license=('AGPL3') +makedepends=('coreutils' 'sed' 'gcc') +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('10cbff3d7c17d5c8e99dab20e5b425e1da7625dd4090d6c904c944b8bb64195f') + + +build() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" c +} + +package() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" install-c install-license +} + diff --git a/argparser-c/upload b/argparser-c/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/argparser-c/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/argparser-doc/PKGBUILD b/argparser-doc/PKGBUILD new file mode 100644 index 0000000..a95efbc --- /dev/null +++ b/argparser-doc/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-doc/argparser.install b/argparser-doc/argparser.install new file mode 100644 index 0000000..a6418e3 --- /dev/null +++ b/argparser-doc/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 +} + diff --git a/argparser-doc/upload b/argparser-doc/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/argparser-doc/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/argparser-java/PKGBUILD b/argparser-java/PKGBUILD new file mode 100644 index 0000000..e8bc9ec --- /dev/null +++ b/argparser-java/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=argparser-java +pkgver=5.1 +pkgrel=1 +pkgdesc="Command line argument parser library, like getopt, except better. Java version" +arch=('any') +url="https://github.com/maandree/argparser" +license=('AGPL3') +makedepends=('coreutils' 'sed' 'java-environment') +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('10cbff3d7c17d5c8e99dab20e5b425e1da7625dd4090d6c904c944b8bb64195f') + + +build() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" java +} + +package() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" install-java install-license +} + diff --git a/argparser-java/upload b/argparser-java/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/argparser-java/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/argparser-python/PKGBUILD b/argparser-python/PKGBUILD new file mode 100644 index 0000000..11967d2 --- /dev/null +++ b/argparser-python/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=argparser-python +pkgver=5.1 +pkgrel=1 +pkgdesc="Command line argument parser library, like getopt, except better. Python version." +arch=('any') +url="https://github.com/maandree/argparser" +license=('AGPL3') +makedepends=('coreutils' 'sed') +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=('10cbff3d7c17d5c8e99dab20e5b425e1da7625dd4090d6c904c944b8bb64195f') + + +build() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" PY3VERSION="$(python -V | cut -d ' ' -f 2 | cut -d . -f 1,2)" \ + python +} + +package() { + cd "${srcdir}/argparser-${pkgver}" + make DESTDIR="$pkgdir" PKGNAME="$pkgname" PY3VERSION="$(python -V | cut -d ' ' -f 2 | cut -d . -f 1,2)" \ + install-python install-license +} + diff --git a/argparser-python/upload b/argparser-python/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/argparser-python/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/argparser/PKGBUILD b/argparser/PKGBUILD new file mode 100644 index 0000000..8d47ff2 --- /dev/null +++ b/argparser/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=argparser +pkgver=5.1 +pkgrel=5 +pkgdesc="Command line argument parser library, like getopt, except better. Transitional meta-package." +arch=('any') +url="https://github.com/maandree/argparser" +license=('AGPL3') +depends=('argparser-bash' 'argparser-c' 'argparser-java' 'argparser-python' 'argparser-doc') + + +package() { + true +} + diff --git a/argparser/upload b/argparser/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/argparser/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file -- cgit v1.2.3-70-g09d2