aboutsummaryrefslogblamecommitdiffstats
path: root/community/librsvg/APKBUILD
blob: c2f71a44d54c49367a5c6232b47e9e9f196b0ad5 (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.54.1
pkgrel=0
pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
url="https://wiki.gnome.org/Projects/LibRsvg"
arch="all !s390x !riscv64" # rust
license="LGPL-2.1-or-later"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc"
makedepends="
	bzip2-dev
	cairo-dev
	cargo
	gi-docgen
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	libgsf-dev
	py3-docutils
	rust
	ttf-dejavu
	vala
	"
source="https://download.gnome.org/sources/librsvg/${pkgver%.*}/librsvg-$pkgver.tar.xz
	target.patch
	"
# tests are very dependent on versions of pango/cairo/freetype
options="!check"

# secfixes:
#   2.50.4-r0:
#     - RUSTSEC-2020-0146
#   2.46.2-r0:
#     - CVE-2019-20446

build() {
	export RUSTFLAGS="$RUSTFLAGS -C debuginfo=2"
	export CARGO_PROFILE_RELEASE_LTO=true
	export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1

	./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="
d1ea8a49988fed1d7a2ba21540a6c10084cd78f8b6db3534882d086a09f3a0d96ec80c59b3744a6eeef8ae511f0b0152eaf18cc9a134f4b871a993418cae09a6  librsvg-2.54.1.tar.xz
8cc9b9dd70a6dedb550a50e12a1bf0ca12f87487f432dcc2568d47412752565d563d7f488390108f49bda324b47387fec9386cf20be47e75d56fb482ecf0bb67  target.patch
"