aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-23 14:57:29 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-26 21:37:25 +0000
commit637edf8f0bd75fd53b869585de8710a26b7c2c8f (patch)
treea0a260dd9c0d16c285c6e16d4f03a6ecac375c63
parentc4199ee14f2d3adcbe5b9cc84b5f76a601b516b0 (diff)
downloadaports-637edf8f0bd75fd53b869585de8710a26b7c2c8f.tar.gz
aports-637edf8f0bd75fd53b869585de8710a26b7c2c8f.tar.bz2
aports-637edf8f0bd75fd53b869585de8710a26b7c2c8f.tar.xz
main/libgsf: add check, modernise, fix license
-rw-r--r--main/libgsf/APKBUILD30
1 files changed, 15 insertions, 15 deletions
diff --git a/main/libgsf/APKBUILD b/main/libgsf/APKBUILD
index 385a4a5623..97fa0872ef 100644
--- a/main/libgsf/APKBUILD
+++ b/main/libgsf/APKBUILD
@@ -1,30 +1,25 @@
# 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
}