aboutsummaryrefslogblamecommitdiffstats
path: root/main/libgsf/APKBUILD
blob: ed3d93ecfec9eeeb5af8aa0f17bbdc055839cd60 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
              

                                                                         
                            
          
                       
                                                     
                       

                                                                     
                                                                                 
 



                   
         

                                                                 



                                 




                                         
                                  






                                      


           

                                      


                                                                   
                                                                                                                                                                    
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.46
pkgrel=0
pkgdesc="Utility library for reading and writing structured file formats"
url="https://www.gnome.org/"
arch="all"
license="LGPL-2.1-only"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends_dev="bzip2-dev"
makedepends="libxml2-dev glib-dev bzip2-dev intltool python3 zlib-dev
	gobject-introspection-dev"
source="https://download.gnome.org/sources/$pkgname/1.14/$pkgname-$pkgver.tar.xz"

# secfixes:
#   1.14.41-r0:
#   - CVE-2016-9888

build() {
	cd "$builddir"
	sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.*
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--disable-static \
		--without-gnome-vfs \
		--without-bonobo \
		--enable-introspection
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1
}

sha512sums="130331f63d48455cc2ce60756e2ac703f8a7f5fa8f1243d9d9321fb87e01bf1d616d085d100a3e5d1cf34fb851ffb77bc642aff6c674ace167b9aa117f4fb1b0  libgsf-1.14.46.tar.xz"