mirror of
				https://github.com/termux/termux-packages.git
				synced 2025-10-31 08:46:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			478 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			478 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!@TERMUX_PREFIX@/bin/bash
 | |
| set -e
 | |
| PREFIX="@TERMUX_PREFIX@"
 | |
| 
 | |
| if [[ "${1}" = purge || "@TERMUX_PACKAGE_FORMAT@" = "pacman" ]]; then
 | |
| 	MIMEDIR="${PREFIX}/share/mime"
 | |
| 
 | |
| 	if [[ -d "${MIMEDIR}" ]]; then
 | |
| 		rm -f "${MIMEDIR}"/{globs,globs2,icons,treemagic,generic-icons,types,magic,XMLnamespaces,subclasses,aliases,mime.cache}
 | |
| 		rm -rf "${MIMEDIR}"/{application,audio,image,inode,message,model,multipart,text,video,x-content,x-epoc}
 | |
| 		rmdir --ignore-fail-on-non-empty "${MIMEDIR}"
 | |
| 	fi
 | |
| fi
 |