new bblfs: media-libs/libsixel-1.10.5
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
pkgname=libsixel
|
||||||
|
pkgver=1.10.5
|
||||||
|
pkgdesc="A lightweight, fast implementation of DEC SIXEL graphics codec"
|
||||||
|
homepage="https://github.com/libsixel/libsixel"
|
||||||
|
license=("MIT" "public-domain")
|
||||||
|
depends=()
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||||
|
urls=("https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||||
|
sha512sums=("94fc972ee304885936d5d8fbc3dadc5feadebf1ab262bb49c9ae9b1eed19c528ed823f4d31c17326340f06a5b7ee28a1817be15ae55c3e9d0c4437cd36b3e49d")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
sed -i '/^have/d' converters/shell-completion/bash/img2sixel
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
local meson_args=(
|
||||||
|
--prefix=/usr
|
||||||
|
--buildtype=release
|
||||||
|
--wrap-mode=nodownload
|
||||||
|
-D python.bytecompile=1
|
||||||
|
-D libcurl=disabled
|
||||||
|
-D gd=disabled
|
||||||
|
-D gdk-pixbuf2=disabled
|
||||||
|
-D jpeg=disabled
|
||||||
|
-D png=disabled
|
||||||
|
-D tests=disabled
|
||||||
|
-D bashcompletiondir="/usr/share/bash-completion/completions"
|
||||||
|
)
|
||||||
|
meson setup build "${meson_args[@]}"
|
||||||
|
meson compile -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson install -C build --destdir "$pkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:ft=sh syn=sh et sw=2:
|
||||||
Reference in New Issue
Block a user