Subject: [PATCH] main/cairomm: modernize

From: Bart Ribbers <[email-masked]>
Date: Thu, 19 Sep 2019 01:15:58 +0200

---
 main/cairomm/APKBUILD | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/main/cairomm/APKBUILD b/main/cairomm/APKBUILD
index be59ab6b4b..07f290e731 100644
--- a/main/cairomm/APKBUILD
+++ b/main/cairomm/APKBUILD
@@ -3,38 +3,33 @@ pkgname=cairomm
 pkgver=1.12.2
 pkgrel=0
 pkgdesc="C++ bindings to Cairo vector graphics library"
-url="http://www.cairographics.org"
+url="https://www.cairographics.org"
 arch="all"
-license="LGPL-2.0-or-later MPL-1.1"
-depends=""
+license="LGPL-2.0-or-later AND MPL-1.1"
 depends_dev="libsigc++-dev"
 makedepends="$depends_dev cairo-dev perl"
 subpackages="$pkgname-dev $pkgname-doc"
-source="http://www.cairographics.org/releases/$pkgname-$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
+source="https://www.cairographics.org/releases/cairomm-$pkgver.tar.gz"
 
 build() {
 	cd "$builddir"
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
-		--prefix=/usr \
-		|| return 1
-	make || return 1
+		--prefix=/usr
+	make
 }
 
 package() {
 	cd "$builddir"
-	make DESTDIR="$pkgdir" install || return 1
+	make DESTDIR="$pkgdir" install
 }
 
 doc() {
-	default_doc || return 1
+	default_doc
 
-	mv "$pkgdir"/usr/share/devhelp "$subpkgdir"/usr/share || return 1
+	mv "$pkgdir"/usr/share/devhelp "$subpkgdir"/usr/share
 	rmdir "$pkgdir"/usr/share
 }
 
-md5sums="9d2282ea34cf9aaa89208bb4bb911909  cairomm-1.12.2.tar.gz"
-sha256sums="45c47fd4d0aa77464a75cdca011143fea3ef795c4753f6e860057da5fb8bd599  cairomm-1.12.2.tar.gz"
 sha512sums="df2749e3865dfddf04c40b671453e057e7e76c5052bfc38d5b986c544b7ec43de40b1ef5b4d0e34f58781230d4b220c4176ddef773cd6a316c73641c4aec77c0  cairomm-1.12.2.tar.gz"
-- 
2.21.0