Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 pmdk-convert (1.7-1) unstable; urgency=medium
 .
   * New upstream release, for PMDK up to 1.7.
Author: Adam Borowski <kilobyte@angband.pl>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-10-02

--- pmdk-convert-1.7.orig/CMakeLists.txt
+++ pmdk-convert-1.7/CMakeLists.txt
@@ -318,42 +318,8 @@ endfunction()
 function(get_pmdk ver hash dstdir)
 	set(pkg ${CMAKE_SOURCE_DIR}/${ver}.tar.gz)
 
-	if (EXISTS ${pkg})
-		file(SHA256 ${pkg} pkg_hash)
-		if (NOT ${pkg_hash} STREQUAL ${hash})
-			message(STATUS "Hash for version ${ver} doesn't match the expected value.")
-			if (EXISTS ${CMAKE_SOURCE_DIR}/${dstdir})
-				message(STATUS "Removing ${CMAKE_SOURCE_DIR}/${dstdir}.")
-				file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/${dstdir})
-			endif()
-			message(STATUS "Removing ${pkg}.")
-			file(REMOVE ${pkg})
-		endif()
-	endif()
-
-	if (NOT EXISTS ${pkg})
-		if (EXISTS ${CMAKE_SOURCE_DIR}/${dstdir})
-			message(STATUS "Removing ${CMAKE_SOURCE_DIR}/${dstdir}.")
-			file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/${dstdir})
-		endif()
-
-		message(STATUS "Downloading ${ver}.tar.gz")
-		if (${ver} STREQUAL "1.0" OR ${ver} STREQUAL "1.1")
-			file(DOWNLOAD https://github.com/pmem/pmdk/archive/${ver}.tar.gz ${CMAKE_SOURCE_DIR}/${ver}.tar.gz
-				EXPECTED_HASH SHA256=${hash})
-		else()
-			file(DOWNLOAD https://github.com/pmem/pmdk/releases/download/${ver}/pmdk-${ver}.tar.gz ${CMAKE_SOURCE_DIR}/${ver}.tar.gz
-				EXPECTED_HASH SHA256=${hash})
-		endif()
-		message(STATUS "Downloading ${ver}.tar.gz DONE")
-	endif()
-
 	if(NOT EXISTS ${CMAKE_SOURCE_DIR}/${dstdir})
-		message(STATUS "Uncompressing ${ver}.tar.gz")
-		uncompress(${ver}.tar.gz)
-		message(STATUS "Uncompressing ${ver}.tar.gz DONE")
-
-		file(RENAME ${CMAKE_SOURCE_DIR}/pmdk-${ver} ${CMAKE_SOURCE_DIR}/${dstdir})
+		message(FATAL_ERROR "Missing: pmdk ${ver}")
 	endif()
 endfunction()
 
