aboutsummaryrefslogblamecommitdiffstats
path: root/community/librsvg/APKBUILD
blob: 61065c5822d48655e5a502cd8c9388e22b2beb2e (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=librsvg
pkgver=2.50.2
pkgrel=0
pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
url="https://wiki.gnome.org/Projects/LibRsvg"
arch="all !s390x !mips !mips64" # rust
license="LGPL-2.1-or-later"
options="!check" # Failing
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-lang"
makedepends="$depends_dev bzip2-dev cairo-dev glib-dev cargo rust vala
	gobject-introspection-dev gtk+3.0-dev libgsf-dev"
source="https://download.gnome.org/sources/librsvg/${pkgver%.*}/librsvg-$pkgver.tar.xz"

# secfixes:
#   2.46.2-r0:
#     - CVE-2019-20446

build() {
	export RUSTFLAGS="$RUSTFLAGS -C debuginfo=2"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib/$pkgname \
		--disable-static \
		--enable-vala
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f7e4990e1d74750246ec5816327c606607bb864ea7c44bce3ba9254a90b71692ed397e90343473d266f71eae3df7085c00e5a9a90b02d27ed6648e717d69fb45  librsvg-2.50.2.tar.xz"