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> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf pkgname=libgsf
pkgver=1.14.42 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." pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats."
url="https://www.gnome.org/" url="https://www.gnome.org/"
arch="all" arch="all"
license="GPL LGPL" license="LGPL-2.1-only"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends= depends=
depends_dev="bzip2-dev" 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" source="https://download.gnome.org/sources/$pkgname/1.14/$pkgname-$pkgver.tar.xz"
_builddir="$srcdir/$pkgname-$pkgver"
# secfixes: # secfixes:
# 1.14.41-r0: # 1.14.41-r0:
# - CVE-2016-9888 # - CVE-2016-9888
prepare() {
cd "$_builddir"
}
build() { build() {
cd "$_builddir" cd "$builddir"
sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.* || return 1 sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.*
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -35,13 +30,18 @@ build() { ...@@ -35,13 +30,18 @@ build() {
--disable-static \ --disable-static \
--without-gnome-vfs \ --without-gnome-vfs \
--without-bonobo \ --without-bonobo \
|| return 1 --enable-introspection
make || return 1 make
}
check() {
cd "$builddir"
make check
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1 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