blob: afc6a87d528c9c575dc6fcb1cefabdfceaa4e5c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Sidney Kuyateh <autinerd-arch@kuyateh.eu>
pkgname=meta-package-manager
pkgver=5.11.0
pkgrel=1
pkgdesc='A wrapper around all package managers'
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>=3.4.0' python-packageurl python-tabulate python-tomli python-tomli-w python-typing_extensions python-xmltodict)
checkdepends=(python-pytest python-pytest-cov python-pytest-randomly python-pytest-xdist)
optdepends=('apt: support for apt packages'
'rust: support for Rust packages'
'composer: support for PHP composer packages'
'dnf: support for RPM packages'
'flatpak: support for Flatpak packages'
'rubygems: support for Ruby packages'
'npm: support for Node.js packages'
'opkg: support for OPKG packages'
'pacaur: support for AUR packages'
'pacman: support for Pacman packages'
'paru: support for AUR packages'
'python-pip: support for Python packages'
'python-pipx: support for Python pipx packages'
'snapd: support for Snap packages'
'steamcmd: support for Steam games'
'code: support for VSCode extensions'
'yarn: support for Node packages'
'yay: support for AUR packages'
'yum: support for DNF packages'
'zypper: support for RPM packages')
license=('GPL2')
arch=('any')
source=("https://github.com/kdeldycke/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('3b442f19e25a4f952361d47f77c93341553f5a0698031a3eceb945606eeb57b7d8740a993c951edd5067a7e1d07f7e404430fa31b40f4192f7c5a5dcc6159e5d')
build() {
# Poetry has a bug where .gitignore files in any parent directory is used in excluding files to build, resulting in an empty package.
cd "$srcdir/$pkgname-$pkgver"
GIT_DIR="$srcdir/$pkgname-$pkgver" python -m build --wheel --no-isolation
}
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-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" license
}
|