mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 10:04:36 +02:00
60 lines
1.3 KiB
Text
60 lines
1.3 KiB
Text
# Contributor: knuxify <knuxify@gmail.com>
|
|
# Contributor: Maxim Karasev <begs@disroot.org>
|
|
# Maintainer: knuxify <knuxify@gmail.com>
|
|
pkgname=chafa
|
|
pkgver=1.16.1
|
|
pkgrel=0
|
|
pkgdesc="Terminal graphics for the 21st century"
|
|
url="https://hpjansson.org/chafa"
|
|
arch="all"
|
|
license="LGPL-3.0-or-later"
|
|
makedepends="
|
|
glib-dev
|
|
tiff-dev
|
|
freetype-dev
|
|
libavif-dev
|
|
libjpeg-turbo-dev
|
|
librsvg-dev
|
|
libwebp-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-libs
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/hpjansson/chafa/releases/download/$pkgver/chafa-$pkgver.tar.xz"
|
|
|
|
# libjxl package is not available on s390x
|
|
if [ "$CARCH" != "s390x" ]; then
|
|
makedepends="$makedepends libjxl-dev"
|
|
fi
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 tools/completions/zsh-completion.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_chafa
|
|
install -Dm644 tools/completions/fish-completion.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/chafa.fish
|
|
}
|
|
|
|
sha512sums="
|
|
fae0c7720888f00a253cc8f0b68f28647d55ec8d96db305ba9c02a7defe49dd29ed543715112940b71d8ec88504a03f08468e869dfed31436132163ea9fd4ed2 chafa-1.16.1.tar.xz
|
|
"
|