Commit 637edf8f authored by A. Wilcox's avatar A. Wilcox Committed by Ariadne Conill

main/libgsf: add check, modernise, fix license

parent c4199ee1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.42
pkgrel=0
pkgrel=1
pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats."
url="https://www.gnome.org/"
arch="all"
license="GPL LGPL"
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 python2 zlib-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"
_builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
# 1.14.41-r0:
# - CVE-2016-9888
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.* || return 1
cd "$builddir"
sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.*
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,13 +30,18 @@ build() {
--disable-static \
--without-gnome-vfs \
--without-bonobo \
|| return 1
make || return 1
--enable-introspection
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment