initial commit
This commit is contained in:
		
						commit
						bf3581bd74
					
				
					 4 changed files with 88 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								.SRCINFO
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.SRCINFO
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| pkgbase = lcn-pro | ||||
| 	pkgdesc = PC program for setting up LCN modules | ||||
| 	pkgver = 6.9.5 | ||||
| 	pkgrel = 1 | ||||
| 	url = https://www.lcn.eu/en/service/software-2/ | ||||
| 	arch = x86_64 | ||||
| 	license = custom | ||||
| 	makedepends = gendesk | ||||
| 	makedepends = icoutils | ||||
| 	makedepends = 7zip | ||||
| 	depends = wine | ||||
| 	conflicts = lcn-pro | ||||
| 	options = !debug | ||||
| 	options = !strip | ||||
| 	source = LCN-PRO-6.9.5_Setup.exe.zip::https://www.lcn.eu/en/?wpdmdl=8089 | ||||
| 	source = lcn-pro.sh | ||||
| 	sha256sums = 82a79207886768c58b68665024b28f2a197138594726de7ba7087c7a624a5fcf | ||||
| 	sha256sums = fe1761f84dee22e2c04f2ec4dfbf9fbfd850076295cf6889ac44d6a340b0b610 | ||||
| 
 | ||||
| pkgname = lcn-pro | ||||
							
								
								
									
										8
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| # Ignore everything | ||||
| * | ||||
| 
 | ||||
| # But not these files... | ||||
| !.gitignore | ||||
| !PKGBUILD | ||||
| !.SRCINFO | ||||
| !lcn-pro.sh | ||||
							
								
								
									
										51
									
								
								PKGBUILD
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								PKGBUILD
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,51 @@ | |||
| # Maintainer: nezu <nezu@nezu.cc> | ||||
| pkgname=lcn-pro | ||||
| pkgver=6.9.5 | ||||
| pkgrel=1 | ||||
| pkgdesc="PC program for setting up LCN modules" | ||||
| arch=('x86_64') | ||||
| url="https://www.lcn.eu/en/service/software-2/" | ||||
| license=('custom') | ||||
| options=(!debug !strip) | ||||
| depends=(wine) | ||||
| makedepends=(gendesk icoutils 7zip) | ||||
| conflicts=('lcn-pro') | ||||
| source=( | ||||
|   "LCN-PRO-${pkgver}_Setup.exe.zip::https://www.lcn.eu/en/?wpdmdl=8089" | ||||
|   "lcn-pro.sh" | ||||
| ) | ||||
| sha256sums=('82a79207886768c58b68665024b28f2a197138594726de7ba7087c7a624a5fcf' | ||||
|             'fe1761f84dee22e2c04f2ec4dfbf9fbfd850076295cf6889ac44d6a340b0b610') | ||||
| 
 | ||||
| prepare() { | ||||
|   # extract the installer | ||||
|   7z x -y LCN-PRO-${pkgver}_Setup.exe -olcn-pro | ||||
| 
 | ||||
|   # extract the icon out of the executable | ||||
|   wrestool -x -n MAINICON lcn-pro/LCNPRO.exe -o lcn-pro.ico | ||||
| 
 | ||||
|   # get the highest quality PNG from the icon file | ||||
|   icotool -x lcn-pro.ico -i 1 -o lcn-pro.png | ||||
| 
 | ||||
|   # generate a .desktop file | ||||
|   gendesk -f -n \ | ||||
|     --name "LCN-PRO" \ | ||||
|     --pkgname "$pkgname" \ | ||||
|     --pkgdesc "$pkgdesc" \ | ||||
|     --exec lcn-pro \ | ||||
|     --icon lcn-pro.png \ | ||||
|     --categories "Utility;Network;HardwareSettings" | ||||
| } | ||||
| 
 | ||||
| package() { | ||||
|   install -d "$pkgdir"/usr/share/"$pkgname" | ||||
|   cp -a lcn-pro/{*.exe,*.dll,Data,locale} "$pkgdir"/usr/share/"$pkgname" | ||||
|   find "$pkgdir"/usr/share -type f -exec chmod 644 "{}" \; | ||||
|   find "$pkgdir"/usr/share -type d -exec chmod 755 "{}" \; | ||||
|   chmod 755 "$pkgdir"/usr/share/"$pkgname"/LCNPRO.exe | ||||
| 
 | ||||
|   install -Dm755 lcn-pro.sh "$pkgdir"/usr/bin/lcn-pro | ||||
| 
 | ||||
|   install -Dm644 lcn-pro.png "$pkgdir"/usr/share/pixmaps/lcn-pro.png | ||||
|   install -Dm644 lcn-pro.desktop "$pkgdir"/usr/share/applications/lcn-pro.desktop | ||||
| } | ||||
							
								
								
									
										9
									
								
								lcn-pro.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								lcn-pro.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| export WINEPREFIX="$HOME"/.lcn-pro/wine | ||||
| if [ ! -d "$HOME"/.lcn-pro ]; then | ||||
|   mkdir -p "$HOME"/.lcn-pro/wine | ||||
|   wineboot -u | ||||
| fi | ||||
| 
 | ||||
| WINEDEBUG=-all wine /usr/share/lcn-pro/LCNPRO.exe "$@" | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue