summaryrefslogblamecommitdiff
path: root/user/libgsf/APKBUILD
blob: 7d79b4ac6eea2c1e856bceff0f6cb9796a3e8f29 (plain) (tree)















































                                                                                                                                                                    
# Maintainer: 
pkgname=libgsf
pkgver=1.14.43
pkgrel=0
pkgdesc="Library for manipulating structured files"
url="https://www.gnome.org/"
arch="all"
license="LGPL-2.1-only"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
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="bb487de9358c057fc73f3414c9515726315be9b6d78456253daaca1cbd58281de8766e0b72914532d63fab04d3ae2cf90f711f436c7b4f70620d77e8a7802ac9  libgsf-1.14.43.tar.xz"