aports/testing/hyfetch/APKBUILD

32 lines
1.3 KiB
Text

# Contributor: Robin Candau <robincandau@protonmail.com>
# Maintainer: Robin Candau <robincandau@protonmail.com>
pkgname=hyfetch
pkgver=1.99.0
pkgrel=1
pkgdesc="Neofetch with LGBTQ+ pride flags!"
url="https://github.com/hykilpikonna/hyfetch"
arch="noarch"
license="MIT"
depends="py3-setuptools"
makedepends="py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc $pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/hykilpikonna/hyfetch/archive/$pkgver.tar.gz"
options="!check" # no test suite
build() {
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}
package() {
gpep517 install-wheel --destdir "$pkgdir" .dist/*.whl
install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm 644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 644 "docs/$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
install -Dm 644 "$pkgname/scripts/autocomplete.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm 644 "$pkgname/scripts/autocomplete.zsh" "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
}
sha512sums="
e6d662ab028cd159e69b09d2929fb7b28d7ce470d2d6c7a5ef9af688ee7ce973d893d4bb13e70be0846a5d0d5808560d92608014d877113166a5e8af11ed8275 hyfetch-1.99.0.tar.gz
"