forked from hasufell/hasufell-repository
		
	
		
			
	
	
		
			31 lines
		
	
	
		
			500 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			31 lines
		
	
	
		
			500 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								# Copyright 2018 Julian Ospald <hasufell@posteo.de>
							 | 
						||
| 
								 | 
							
								# Distributed under the terms of the GNU General Public License v2
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								require github [ user='ncopa' tag="v${PV}" ]
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								SUMMARY="Switch user and group id and exec"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								LICENCES="MIT"
							 | 
						||
| 
								 | 
							
								SLOT="0"
							 | 
						||
| 
								 | 
							
								PLATFORMS="~amd64 ~x86"
							 | 
						||
| 
								 | 
							
								MYOPTIONS=""
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								BUGS_TO="hasufell@posteo.de"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								DEFAULT_SRC_COMPILE_PARAMS=(
							 | 
						||
| 
								 | 
							
								    CC=${CC}
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								src_prepare() {
							 | 
						||
| 
								 | 
							
								    default
							 | 
						||
| 
								 | 
							
								    edo sed -i \
							 | 
						||
| 
								 | 
							
								            -e "s/-Werror//" \
							 | 
						||
| 
								 | 
							
								            Makefile
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								src_install() {
							 | 
						||
| 
								 | 
							
								    dobin su-exec
							 | 
						||
| 
								 | 
							
								    emagicdocs
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 |