80 lines
2.0 KiB
Bash
80 lines
2.0 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
#pkgbase=gdk-pixbuf2
|
|
pkgname=(gdk-pixbuf2) # gdk-pixbuf2-docs)
|
|
pkgver=2.42.10
|
|
pkgrel=02
|
|
pkgdesc="An image loading library"
|
|
url="https://wiki.gnome.org/Projects/GdkPixbuf"
|
|
depends=(glib2 libpng libtiff libjpeg shared-mime-info)
|
|
makedepends=(gobject-introspection git meson gi-docgen python-docutils)
|
|
optdepends=(
|
|
"libwmf: Load .wmf and .apm"
|
|
"libopenraw: Load .dng, .cr2, .crw, .nef, .orf, .pef, .arw, .erf, .mrw, and .raf"
|
|
"libavif: Load .avif"
|
|
"libheif: Load .heif, .heic, and .avif"
|
|
"libjxl: Load .jxl"
|
|
"librsvg: Load .svg, .svgz, and .svg.gz"
|
|
"webp-pixbuf-loader: Load .webp"
|
|
)
|
|
_commit=9ac257eb38f772fec4253e8051743029e75a2acd # tags/2.42.10^0
|
|
source=("git+https://gitlab.gnome.org/GNOME/gdk-pixbuf.git#commit=$_commit"
|
|
gdk-pixbuf-query-loaders.hook)
|
|
|
|
pkgver() {
|
|
cd gdk-pixbuf
|
|
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd gdk-pixbuf
|
|
}
|
|
|
|
build() {
|
|
arch-meson gdk-pixbuf build \
|
|
-D builtin_loaders=all \
|
|
-D gtk_doc=true \
|
|
-D installed_tests=false
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
package_gdk-pixbuf2() {
|
|
provides=(libgdk_pixbuf-2.0.so)
|
|
install=gdk-pixbuf2.install
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
|
|
|
mkdir -p doc/usr/share
|
|
mv {"$pkgdir",doc}/usr/share/doc
|
|
|
|
install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
|
|
}
|
|
|
|
#package_gdk-pixbuf2-docs() {
|
|
# pkgdesc+=" (documentation)"
|
|
# depends=()
|
|
#
|
|
# mv doc/* "$pkgdir"
|
|
#}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(LGPL)
|
|
|
|
sha256sums=(SKIP
|
|
9fb71d95e6a212779eb0f88dde5a3cee0df7f4d9183f8f9ce286f8cdc14428f0) # gdk-pixbuf-query-loaders.hook
|
|
|
|
## 0d92c8bb7114d52ec96b29da65575f3bdee07304e9d71e5b44648593ba0504cf gdk-pixbuf2-2.42.10-02-x86_64.pkg.tar.lz
|
|
|