def package(self):
    self.copy(pattern='COPYING.txt', dst='licenses', src=self._source_subfolder)
    cmake = self._configure_cmake()
    cmake.install()
    tools.remove_files_by_mask(os.path.join(self.package_folder, 'bin'), 'sdl2-config')
    tools.rmdir(os.path.join(self.package_folder, 'cmake'))
    tools.rmdir(os.path.join(self.package_folder, 'lib', 'cmake'))
    tools.rmdir(os.path.join(self.package_folder, 'lib', 'pkgconfig'))
    tools.rmdir(os.path.join(self.package_folder, 'libdata'))
    tools.rmdir(os.path.join(self.package_folder, 'share'))
def package(self):
    self.copy(pattern='COPYING.txt', dst='licenses', src=self._source_subfolder)
    cmake = self._configure_cmake()
    cmake.install()
    tools.remove_files_by_mask(os.path.join(self.package_folder, 'bin'), 'sdl2-config')
    tools.rmdir(os.path.join(self.package_folder, 'cmake'))
    tools.rmdir(os.path.join(self.package_folder, 'lib', 'cmake'))
    tools.rmdir(os.path.join(self.package_folder, 'lib', 'pkgconfig'))
    tools.rmdir(os.path.join(self.package_folder, 'libdata'))
    tools.rmdir(os.path.join(self.package_folder, 'share'))