mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 00:34:26 +02:00
47 lines
1.5 KiB
Text
47 lines
1.5 KiB
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=git-machete
|
|
pkgver=3.35.1
|
|
pkgrel=0
|
|
pkgdesc="git repository organizer & rebase/merge workflow automation tool"
|
|
url="https://github.com/VirtusLab/git-machete"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-pytest-mock zsh bash fish bash-completion"
|
|
subpackages="
|
|
$pkgname-pyc
|
|
$pkgname-bash-completion
|
|
$pkgname-zsh-completion
|
|
$pkgname-fish-completion
|
|
"
|
|
source="https://github.com/VirtusLab/git-machete/archive/refs/tags/v$pkgver/git-machete-$pkgver.tar.gz
|
|
"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
PATH="$PATH:$builddir/.testenv/bin" EDITOR=cat pytest -k 'not TestCompletionEndToEnd'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
|
|
install -Dm0644 "$builddir"/completion/git-machete.completion.bash \
|
|
"$pkgdir/usr/share/bash-completion/completions/git-machete"
|
|
install -Dm0644 "$builddir"/completion/git-machete.completion.zsh \
|
|
"$pkgdir/usr/share/zsh/site-functions/_git-machete"
|
|
install -Dm0644 "$builddir"/completion/git-machete.fish \
|
|
-t "$pkgdir/usr/share/fish/vendor_completions.d"
|
|
}
|
|
|
|
sha512sums="
|
|
8e3b2d3e1fed78961eb4274e40bfd59d51a18f23e7e3b69577eddab25d7d0545c3cb00db837645cef382763359ce55ca656cf90e1037d43312bc732e17ae10b0 git-machete-3.35.1.tar.gz
|
|
"
|