From c3c59115886eb3776c7dd22944bc781fa4ec551e Mon Sep 17 00:00:00 2001
From: Alessio Sergi <al3hex@gmail.com>
Date: Thu, 7 Jul 2016 16:16:11 +0200
Subject: [PATCH] openjpeg2: update to 2.1.1, moved to github.

---
 srcpkgs/openjpeg2/template | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/openjpeg2/template b/srcpkgs/openjpeg2/template
index ae60ba838c..7651ac9bf4 100644
--- a/srcpkgs/openjpeg2/template
+++ b/srcpkgs/openjpeg2/template
@@ -1,24 +1,27 @@
 # Template file for 'openjpeg2'
 pkgname=openjpeg2
-version=2.1.0
-wrksrc="openjpeg-${version}"
+version=2.1.1
 revision=1
+wrksrc="openjpeg-${version}"
 build_style=cmake
 maintainer="Dominik Honnef <dominik@honnef.co>"
 homepage="http://www.openjpeg.org/"
-license="BSD"
+license="2-clause-BSD"
 short_desc="Open-source JPEG 2000 codec written in C language (Version 2)"
-hostmakedepends="cmake"
 makedepends="libpng-devel lcms2-devel tiff-devel"
-distfiles="${SOURCEFORGE_SITE}/openjpeg.mirror/${version}/openjpeg-${version}.tar.gz"
-checksum="1232bb814fd88d8ed314c94f0bfebb03de8559583a33abbe8c64ef3fc0a8ff03"
+distfiles="https://github.com/uclouvain/openjpeg/archive/v${version}.tar.gz"
+checksum=82c27f47fc7219e2ed5537ac69545bf15ed8c6ba8e6e1e529f89f7356506dbaa
+
+post_install() {
+	vlicense LICENSE
+}
 
 libopenjpeg2-devel_package() {
     short_desc+=" - development files"
     depends="libopenjpeg2>=${version}_${revision}"
     pkg_install() {
 		vmove usr/include
-		vmove "usr/lib/*.so"
+		vmove usr/lib/*.so
 		vmove usr/lib/openjpeg-2.*
 		vmove usr/lib/pkgconfig
     }
@@ -26,6 +29,6 @@ libopenjpeg2-devel_package() {
 libopenjpeg2_package() {
     short_desc+=" - library files"
     pkg_install() {
-        vmove "usr/lib/*.so.*"
+        vmove usr/lib/*.so.*
     }
 }