diff options
author | Mattias Andrée <maandree@kth.se> | 2016-06-24 14:55:33 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-06-24 14:55:33 +0200 |
commit | 72a4f4f2795bb22808229ca7ce1bec1de2823d98 (patch) | |
tree | d51a4c91db9db4b2f6c0b1a83c21352dd6c6a47c /argparser | |
parent | Add xpybar (diff) | |
download | aur-packages-72a4f4f2795bb22808229ca7ce1bec1de2823d98.tar.gz aur-packages-72a4f4f2795bb22808229ca7ce1bec1de2823d98.tar.bz2 aur-packages-72a4f4f2795bb22808229ca7ce1bec1de2823d98.tar.xz |
Add argparser
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | argparser-bash/PKGBUILD | 24 | ||||
l--------- | argparser-bash/upload | 1 | ||||
-rw-r--r-- | argparser-c/PKGBUILD | 24 | ||||
l--------- | argparser-c/upload | 1 | ||||
-rw-r--r-- | argparser-doc/PKGBUILD | 25 | ||||
-rw-r--r-- | argparser-doc/argparser.install | 20 | ||||
l--------- | argparser-doc/upload | 1 | ||||
-rw-r--r-- | argparser-java/PKGBUILD | 24 | ||||
l--------- | argparser-java/upload | 1 | ||||
-rw-r--r-- | argparser-python/PKGBUILD | 26 | ||||
l--------- | argparser-python/upload | 1 | ||||
-rw-r--r-- | argparser/PKGBUILD | 16 | ||||
l--------- | argparser/upload | 1 |
13 files changed, 165 insertions, 0 deletions
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 |