35 lines
		
	
	
		
			666 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			666 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
# $Header: $
 | 
						|
 | 
						|
EAPI='7'
 | 
						|
DESCRIPTION='Drawing flags with TikZ, by Wilhelm Haager'
 | 
						|
HOMEPAGE='https://www.ctan.org/pkg/worldflags'
 | 
						|
SRC_URI="https://mirrors.ctan.org/graphics/pgf/contrib/worldflags.zip -> ${P}.zip"
 | 
						|
LICENSE='lppl-1-3'
 | 
						|
SLOT='0'
 | 
						|
KEYWORDS='~alpha ~amd64 ~arm ~hppa ~m68k ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos'
 | 
						|
DEPEND='app-text/texlive app-arch/unzip'
 | 
						|
 | 
						|
src_unpack() {
 | 
						|
	if [[ -n ${A} ]]; then
 | 
						|
		unpack "${A}"
 | 
						|
		mv "${PN}" "${P}"
 | 
						|
	fi
 | 
						|
}
 | 
						|
 | 
						|
src_install() {
 | 
						|
	dodoc README doc/"${PN}".pdf doc/"${PN}".tex
 | 
						|
 | 
						|
	insinto /usr/share/texmf-dist/tex/"${PN}"
 | 
						|
	doins tex/"${PN}".sty
 | 
						|
	doins tex/*.tex
 | 
						|
	doins tex/*.pdf
 | 
						|
}
 | 
						|
 | 
						|
pkg_postinst() {
 | 
						|
	texhash
 | 
						|
}
 | 
						|
 | 
						|
pkg_postrm() {
 | 
						|
	texhash
 | 
						|
}
 |