diff options
author | autinerd | 2022-06-14 20:58:00 +0200 |
---|---|---|
committer | autinerd | 2022-06-14 20:58:00 +0200 |
commit | 988c98da1d96559d18a6cb182b76116d3b32d62c (patch) | |
tree | f074a79502fe2c122dfa3de2f66e950d63a58635 | |
download | aur-988c98da1d96559d18a6cb182b76116d3b32d62c.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ae361ca7b52c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = meta-package-manager-git + pkgdesc = A wrapper around all package managers (git version) + pkgver = v5.1.0.r42.g3a916b0 + pkgrel = 1 + url = https://kdeldycke.github.io/meta-package-manager/ + arch = any + license = GPL2 + checkdepends = python-pytest + checkdepends = python-pytest-cov + checkdepends = python-pytest-randomly + checkdepends = python-pytest-xdist + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-poetry + depends = python>=3.7 + depends = python-boltons + depends = python-click + depends = python-click-extra + depends = python-tabulate + depends = python-tomli + depends = python-tomli-w + depends = python-xmltodict + provides = meta-package-manager + conflicts = meta-package-manager + source = git+https://github.com/kdeldycke/meta-package-manager.git + sha512sums = SKIP + +pkgname = meta-package-manager-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b4c3a6468959 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/*.tar.xz +/*.tar.gz +/*.tar.zst +/pkg +/src +/meta-package-manager
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..93f05617af3e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Sidney Kuyateh <autinerd-arch@kuyateh.eu> + +pkgname=meta-package-manager-git +_pkgname=${pkgname%-git} +pkgver=v5.1.0.r42.g3a916b0 +pkgrel=1 +provides=($_pkgname) +conflicts=($_pkgname) +pkgdesc='A wrapper around all package managers (git version)' +url='https://kdeldycke.github.io/meta-package-manager/' +makedepends=(python-build python-installer python-wheel python-poetry) +depends=('python>=3.7' python-boltons python-click python-click-extra python-tabulate python-tomli python-tomli-w python-xmltodict) +checkdepends=(python-pytest python-pytest-cov python-pytest-randomly python-pytest-xdist) +license=('GPL2') +arch=('any') +source=("git+https://github.com/kdeldycke/meta-package-manager.git") +sha512sums=('SKIP') + +pkgver() { + cd "$_pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + # Poetry has a bug where .gitignore files in any parent directory is used in excluding files to build, resulting in an empty package. + if [ -e "$srcdir/../.gitignore" ]; then + mv "$srcdir/../.gitignore" "$srcdir/../.gitignore.bak" + GITIGNORE_MOVED=1 + fi + cd "$srcdir/$_pkgname" + python -m build --wheel --no-isolation + if [ $GITIGNORE_MOVED = 1 ]; then + mv "$srcdir/../.gitignore.bak" "$srcdir/../.gitignore" + fi +} + +check() { + # Pytest does currently not run successfully due to a bug in the tests. Will be uncommented when the bug is fixed. + # cd "$srcdir/$_pkgname-$pkgver" + # pytest + true +} + +package() { + cd "$srcdir/$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/licenses/$_pkgname/" license +} |