| 
									
										
										
										
											2016-02-29 15:31:30 +00:00
										 |  |  | # Copyright 2016 Julian Ospald <hasufell@posteo.de> | 
					
						
							|  |  |  | # Distributed under the terms of the GNU General Public License v2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SCM_SVN_RAW_URI=1 | 
					
						
							|  |  |  | SCM_REPOSITORY="http://svn.code.sf.net/p/freesynd/code/freesynd/trunk" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require desktop-utils | 
					
						
							|  |  |  | require gtk-icon-cache | 
					
						
							|  |  |  | require scm-svn | 
					
						
							| 
									
										
										
										
											2016-05-18 01:18:20 +00:00
										 |  |  | require cmake [ api=2 ] | 
					
						
							|  |  |  | require sourceforge | 
					
						
							| 
									
										
										
										
											2016-02-29 15:31:30 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | SUMMARY="A cross-platform reimplementation of engine for the classic Bullfrog game, Syndicate" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | LICENCES="GPL-3" | 
					
						
							|  |  |  | SLOT="0" | 
					
						
							|  |  |  | PLATFORMS="~amd64 ~x86" | 
					
						
							|  |  |  | MYOPTIONS="" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEPENDENCIES="
 | 
					
						
							|  |  |  |     build+run: | 
					
						
							|  |  |  |         media-libs/SDL:0[X] | 
					
						
							|  |  |  |         media-libs/SDL_image:1 | 
					
						
							|  |  |  |         media-libs/SDL_mixer:0[ogg] | 
					
						
							|  |  |  |         media-libs/libpng:= | 
					
						
							|  |  |  | "
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | src_install() { | 
					
						
							|  |  |  |     dobin src/${PN} | 
					
						
							|  |  |  |     insinto /usr/share/${PN} | 
					
						
							| 
									
										
										
										
											2016-05-18 01:18:20 +00:00
										 |  |  |     doins -r "${CMAKE_SOURCE}"/data | 
					
						
							| 
									
										
										
										
											2016-02-29 15:31:30 +00:00
										 |  |  |     insinto /usr/share/icons/hicolor/128x128/apps | 
					
						
							| 
									
										
										
										
											2016-05-18 01:18:20 +00:00
										 |  |  |     newins "${CMAKE_SOURCE}"/icon/sword.png ${PN}.png | 
					
						
							| 
									
										
										
										
											2016-02-29 15:31:30 +00:00
										 |  |  |     install_desktop_entry | 
					
						
							| 
									
										
										
										
											2016-05-18 01:18:20 +00:00
										 |  |  |     dodoc "${CMAKE_SOURCE}"/{NEWS,README,INSTALL,AUTHORS} | 
					
						
							| 
									
										
										
										
											2016-02-29 15:31:30 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | pkg_postinst() { | 
					
						
							|  |  |  |     elog "You have to set \"data_dir = /my/path/to/synd-data\"" | 
					
						
							|  |  |  |     elog "in \"~/.${PN}/${PN}.ini\"." | 
					
						
							| 
									
										
										
										
											2016-05-18 01:18:20 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     gtk-icon-cache_pkg_postinst | 
					
						
							| 
									
										
										
										
											2016-02-29 15:31:30 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 |