diff options
author | trougnouf (Benoit Brummer) | 2021-05-19 15:54:28 +0200 |
---|---|---|
committer | trougnouf (Benoit Brummer) | 2021-05-19 15:54:28 +0200 |
commit | 44709f71d6bf0084156616593407aa38d63a4fc5 (patch) | |
tree | ba3e952d0e577f4c41974bc6e9df1c46c753adb6 | |
download | aur-44709f71d6bf0084156616593407aa38d63a4fc5.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..de1b5423b5c7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-configargparse-git + pkgdesc = A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables + pkgver = 1.4.1 + pkgrel = 1 + url = https://github.com/bw2/ConfigArgParse + arch = any + license = MIT + checkdepends = python-tests + checkdepends = python-yaml + makedepends = python-setuptools + depends = python + optdepends = python-yaml: for YAML support + provides = python-configargparse + conflicts = python-configargparse + source = git+https://github.com/bw2/ConfigArgParse.git + sha512sums = SKIP + +pkgname = python-configargparse-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bfdaf20a8df1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: trougnouf (Benoit Brummer) <trougnouf@gmail.com> + +_gitname=ConfigArgParse +_basename=python-configargparse +pkgname=${_basename}-git +pkgver=1.4.1 +pkgrel=1 +pkgdesc='A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables' +arch=('any') +url="https://github.com/bw2/${_gitname}" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-tests' 'python-yaml') +optdepends=('python-yaml: for YAML support') +provides=(${_basename}) +conflicts=(${_basename}) +source=("git+${url}.git") +sha512sums=('SKIP') + +pkgver() { + cd ${srcdir}/${_gitname} + git describe --tags | sed 's/-/+/g;s/v//;' +} + +build() { + cd ${_gitname} + python setup.py build +} + +package() { + cd ${_gitname} + + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |