aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 23:37:49 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 18:17:49 +0000
commit7eb2d5015747cf02f8f9163985ab28b7207acdf9 (patch)
treef8b515cb48832e6cbaa54e1b30eac8c886bac0b2 /main/librsvg
parent782779443127567d59ab047f50c546b3b07b9534 (diff)
downloadaports-7eb2d5015747cf02f8f9163985ab28b7207acdf9.tar.bz2
aports-7eb2d5015747cf02f8f9163985ab28b7207acdf9.tar.xz
main/librsvg: bump, modernise, add check, fix license
Diffstat (limited to 'main/librsvg')
-rw-r--r--main/librsvg/APKBUILD41
1 files changed, 17 insertions, 24 deletions
diff --git a/main/librsvg/APKBUILD b/main/librsvg/APKBUILD
index 20879fcea6..31c3e293b6 100644
--- a/main/librsvg/APKBUILD
+++ b/main/librsvg/APKBUILD
@@ -1,47 +1,40 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=librsvg
-pkgver=2.40.19
+pkgver=2.40.20
pkgrel=0
pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
url="http://live.gnome.org/LibRsvg"
arch="all"
-license="LGPL"
+license="LGPL-2.0+"
subpackages="$pkgname-dev $pkgname-doc"
depends=
-depends_dev="glib-dev gtk+2.0-dev cairo-dev libcroco-dev libgsf-dev"
-makedepends="$depends_dev bzip2-dev gobject-introspection-dev"
+depends_dev="gtk+2.0-dev libcroco-dev libgsf-dev"
+makedepends="$depends_dev bzip2-dev cairo-dev glib-dev
+ gobject-introspection-dev"
install=
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libexecdir=/usr/lib/$pkgname \
- --disable-static \
- || return 1
- make || return 1
+ --disable-static
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR=""$pkgdir"" install || return 1
- rm -rf "$pkgdir"/usr/lib/mozilla || return 1
+ cd "$builddir"
+ make DESTDIR=""$pkgdir"" install
+ rm -rf "$pkgdir"/usr/lib/mozilla
}
-sha512sums="ee3921d0344f9c8503a77086e3d0411a5a638beeeefb959529fd07819e21f82504dcd3004faa93c65d77da30d0db055b7cb56ec8517c1bfae3c1ae23582dbce3 librsvg-2.40.19.tar.xz"
+sha512sums="cdd8224deb4c3786e29f48ed02c32ed9dff5cb15aba574a5ef845801ad3669cfcc3eedb9d359c22213dc7a29de24c363248825adad5877c40abf73b3688ff12f librsvg-2.40.20.tar.xz"