diff options
author | caltlgin | 2020-09-07 08:35:55 +1200 |
---|---|---|
committer | caltlgin | 2020-09-07 08:35:55 +1200 |
commit | e0eda52af4f8cf2dbe12050f97f90da411ac741a (patch) | |
tree | 3e3015c2482949eb1e57a86a65c9967fd62f148c | |
download | aur-e0eda52af4f8cf2dbe12050f97f90da411ac741a.tar.gz |
Add to AUR
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..492c9b41ebae --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = johnnydep-git + pkgdesc = Display dependency tree of Python distribution + pkgver = 1.5.r0.ga4982b8 + pkgrel = 1 + url = https://github.com/wimglenn/johnnydep + arch = any + license = MIT + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-anytree + depends = python-cachetools + depends = python-colorama + depends = python-distlib + depends = python-oyaml + depends = python-packaging + depends = python-pkginfo + depends = python-pip + depends = python-setuptools + depends = python-structlog + depends = python-tabulate + depends = python-toml + depends = python-wheel + depends = python-wimpy + provides = johnnydep + source = johnnydep::git+https://github.com/wimglenn/johnnydep.git + sha256sums = SKIP + +pkgname = johnnydep-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..234fee6fccd4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +_pkgname='johnnydep' +pkgname="${_pkgname}-git" +pkgver=1.5.r0.ga4982b8 +pkgrel=1 +pkgdesc='Display dependency tree of Python distribution' +arch=('any') +url='https://github.com/wimglenn/johnnydep' +license=('MIT') +depends=('python' + 'python-anytree' + 'python-cachetools' + 'python-colorama' + 'python-distlib' + 'python-oyaml' + 'python-packaging' + 'python-pkginfo' + 'python-pip' + 'python-setuptools' + 'python-structlog' + 'python-tabulate' + 'python-toml' + 'python-wheel' + 'python-wimpy') +makedepends=('git' 'python-setuptools') +provides=("${_pkgname}") +source=("${_pkgname}::git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${_pkgname}" + python setup.py build +} + +package() { + cd "${_pkgname}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" 'README.md' + install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" 'LICENSE' +} + +# vim: ts=2 sw=2 et: |