aboutsummaryrefslogblamecommitdiffstats
path: root/main/gdk-pixbuf/APKBUILD
blob: ad29565cc4d120ce71278c8e6726501ab10e35a7 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    
                  

             
                                    
                                               
          
                           
                          

                                                                 
                                
                                                             
                                                                  
                                                                                             
               
 





                     
         
                      

                                         
                                                   


         








                                                                                 
                                  


           
                                                              

 









                           
                                                                                                                                                                       
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gdk-pixbuf
pkgver=2.42.0
pkgrel=0
pkgdesc="GTK+ image loading library"
url="https://wiki.gnome.org/Projects/GdkPixbuf"
arch="all"
license="LGPL-2.0-or-later"
depends="shared-mime-info"
makedepends="tiff-dev libjpeg-turbo-dev gobject-introspection-dev
	libpng-dev glib-dev meson"
install="$pkgname.pre-deinstall"
triggers="$pkgname.trigger=/usr/lib/gdk-pixbuf-2.0/*/loaders"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-dbg"
source="https://download.gnome.org/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.xz"
replaces="gtk+"

# secfixes:
#   2.36.6-r1:
#     - CVE-2017-6311
#     - CVE-2017-6312
#     - CVE-2017-6314

build() {
	abuild-meson \
		-Dinstalled_tests=false \
		output .
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	# pixbuf-area-updated takes over 50 minutes to run on Drone
	case $CARCH in
		armhf)
			if test $DRONE; then
				sed -i '/pixbuf-area-updated/d' tests/meson.build
			fi
		;;
	esac

	meson test -t 10 -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

doc() {
	replaces="gtk+-doc"
	default_doc
}

dev() {
	replaces="gtk+-dev"
	default_dev
}

sha512sums="c9962d42e5bf13514091234342e259be1e06b2c4dea2936e16104a3b58f0b6837f070224c04be9541d75f5ea34d1da398f178a1eed1f9059f6429faf5c223e34  gdk-pixbuf-2.42.0.tar.xz"