#type:ignore
{
	'repo_type' : 'git',
    'url': 'https://github.com/libarchive/bzip2.git',
    'source_subfolder': '_build',
	'conf_system' : 'cmake',
	'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DENABLE_STATIC_LIB=ON -DENABLE_SHARED_LIB=OFF -DENABLE_LIB_ONLY=ON',
	# 'download_locations' : [
	# 	{ 'url' : 'https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269' }, ], },
	# 	{ 'url' : 'https://fossies.org/linux/misc/bzip2-1.0.8.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269' }, ], },
	# ],
	# 'patches' : [
	# 	('bzip2/bzip2-1.0.6-gcc8.patch', '-p0'),
	# ],
	# 'custom_cflag' : '-O3',
	# 'needs_configure' : False,
	# 'needs_make' : True,
	# 'needs_make_install' : False,
	# 'build_options' : '{make_prefix_options} libbz2.a bzip2 bzip2recover install',
	# 'run_post_build' : [
	# 	'mkdir -p "{target_prefix}/lib/pkgconfig"',
	# 	"echo 'prefix={target_prefix}\nexec_prefix=${{prefix}}\nlibdir=${{exec_prefix}}/lib\nincludedir=${{prefix}}/include\nName: bzip2\nDescription: bzip2\nVersion:\nLibs: -L${{libdir}} -lbz2\nCflags: -I${{includedir}}' > {target_prefix}/lib/pkgconfig/bzip2.pc",
	# ],

	'regex_replace': {
		'post_patch': [
			{
				0: r'ARCHIVE_OUTPUT_NAME bz2_static\)',
				1: r'ARCHIVE_OUTPUT_NAME bz2)',
				'in_file': '../CMakeLists.txt'
			},
			
		],
	},
	'update_check' : { 'url' : 'ftp://sourceware.org/pub/bzip2/', 'type' : 'ftpindex', 'regex' : r'bzip2-(?P<version_num>[\d.]+)\.tar\.gz' },
	'_info' : { 'version' : '1.0.8', 'fancy_name' : 'BZip2 (library)' },
}