opt/gdk-pixbuf/Pkgfile

33 lines
915 B
Plaintext
Raw Normal View History

2010-11-28 10:37:24 +01:00
# Description: An image loading library for GTK+
2021-03-22 16:31:44 +01:00
# URL: https://wiki.gnome.org/Projects/GdkPixbuf
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: gobject-introspection libpng libtiff shared-mime-info
2010-11-28 10:37:24 +01:00
name=gdk-pixbuf
2024-04-20 15:15:13 +02:00
version=2.42.11
2022-03-19 15:26:08 +01:00
release=1
2023-05-28 10:25:04 +02:00
source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz
2021-03-22 16:31:44 +01:00
gdk-pixbuf.loaders gdk-pixbuf-register.sh)
2010-11-28 10:37:24 +01:00
2021-03-22 16:31:44 +01:00
build() {
2020-12-14 16:20:21 +01:00
meson setup build $name-$version \
--prefix=/usr \
2020-11-16 20:32:40 +01:00
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
2024-04-20 15:15:13 +02:00
-D tests=false \
2020-12-14 16:20:21 +01:00
-D installed_tests=false \
2024-04-20 15:15:13 +02:00
-D man=false \
-D others=enabled
2010-11-28 10:37:24 +01:00
2020-12-14 16:20:21 +01:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
install -m 644 $SRC/gdk-pixbuf.loaders \
$PKG/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
install -m 755 $SRC/gdk-pixbuf-register.sh \
$PKG/usr/bin/gdk-pixbuf-register
rm -r $PKG/usr/share/locale
2010-11-28 10:37:24 +01:00
}