blob: 486245d5bf69d777c2a4d82bd88e2071064b07ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgsf
pkgver=1.14.41
pkgrel=0
pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats."
url="http://www.gnome.org/"
arch="all"
license="GPL LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
depends_dev="bzip2-dev"
makedepends="libxml2-dev glib-dev bzip2-dev intltool python2 zlib-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
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--disable-static \
--without-gnome-vfs \
--without-bonobo \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1
}
md5sums="5b039d1b7196e643315abda1c1c349c4 libgsf-1.14.41.tar.xz"
sha256sums="150b98586a1021d5c49b3d4d065d0aa3e3674ae31db131af5372499d2d3f08d3 libgsf-1.14.41.tar.xz"
sha512sums="e3892500288e5d1d9e46cdd3940d872ae2504fe54babe2dc085218c3e1a5aff5a7220c88bde730239af4a56c340a22f47337280b8892f0ab31e1e751adea9bc3 libgsf-1.14.41.tar.xz"
|