mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-29 12:31:35 +01:00
88 lines
2.2 KiB
Plaintext
88 lines
2.2 KiB
Plaintext
# Contributor: Joseph Benden <joe@benden.us>
|
|
# Maintainer: Joseph Benden <joe@benden.us>
|
|
pkgname=stgit
|
|
pkgver=0.21
|
|
pkgrel=1
|
|
pkgdesc="Manage a stack of patches using GIT as a backend"
|
|
arch="noarch"
|
|
url="http://www.procode.org/stgit/"
|
|
license="GPL-2.0-or-later"
|
|
options="!check" # unit-tests fail due to iconv usage
|
|
depends="git python3"
|
|
makedepends="asciidoc xmlto perl"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-zsh-completion:zshcomp:noarch
|
|
$pkgname-fish-completion:fishcomp:noarch
|
|
$pkgname-bash-completion:bashcomp:noarch
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ctmarinas/stgit/archive/v$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# this will be a noop, as we are working with a tarball,
|
|
# but throws git errors --> just get rid of it
|
|
echo "version=\"$pkgver\"" > stgit/builtin_version.py
|
|
}
|
|
|
|
check() {
|
|
make \
|
|
PYTHON=python3 \
|
|
prefix=/usr \
|
|
mandir=/usr/share/man/ \
|
|
test
|
|
}
|
|
|
|
build() {
|
|
make \
|
|
PYTHON=python3 \
|
|
prefix=/usr \
|
|
mandir=/usr/share/man/ \
|
|
all doc
|
|
}
|
|
|
|
package() {
|
|
make \
|
|
DESTDIR="$pkgdir" \
|
|
PYTHON=python3 \
|
|
prefix=/usr \
|
|
mandir=/usr/share/man/ \
|
|
install install-doc
|
|
}
|
|
|
|
bashcomp() {
|
|
depends=""
|
|
pkgdesc="Bash completions for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
|
|
mv "$pkgdir"/usr/share/stgit/completion/stgit.bash \
|
|
"$subpkgdir"/usr/share/bash-completion/completions/stgit
|
|
rmdir -p "$pkgdir"/usr/share/stgit/completion || true
|
|
}
|
|
|
|
zshcomp() {
|
|
depends=""
|
|
pkgdesc="Zsh compltions for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel zsh"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/zsh/site-functions
|
|
mv "$pkgdir"/usr/share/stgit/completion/stgit.zsh \
|
|
"$subpkgdir"/usr/share/zsh/site-functions/_stgit
|
|
rmdir -p "$pkgdir"/usr/share/stgit/completions || true
|
|
}
|
|
|
|
fishcomp() {
|
|
depends=""
|
|
pkgdesc="Fish completions for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel fish"
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/fish/completions
|
|
mv "$pkgdir"/usr/share/stgit/completion/stg.fish \
|
|
"$subpkgdir"/usr/share/fish/completions/stg.fish
|
|
rmdir -p "$pkgdir"/usr/share/stgit/completions || true
|
|
}
|
|
|
|
sha512sums="198d203c375811846f642df86bae5fa4d46920a62560181b9afba2472940590c2601cf85f5cb6a764b7cad70b59e3ece083c3b291a78e97602235085c7d2237e stgit-0.21.tar.gz"
|