forked from Plemya-x/alr-repo
		
	добавление телега, asar, исправление обсидиана
This commit is contained in:
		
							
								
								
									
										37
									
								
								telegram-desktop-bin/lure.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								telegram-desktop-bin/lure.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| name='discord-electron' | ||||
| version='0.0.22' | ||||
| release='1' | ||||
| desc='Discord (popular voice + video app) using the system provided electron for increased security and performance' | ||||
| homepage='homepage=''https://discord.com/' | ||||
| architectures=('amd64') | ||||
| license=('custom') | ||||
| provides=('discord') | ||||
| conflicts=('discord') | ||||
|  | ||||
| deps=('libXScrnSaver') | ||||
| build_deps=('npm') | ||||
|  | ||||
| sources_amd64=("git+https://github.com/altlinux/${name}.git") | ||||
| checksums_amd64=('SKIP') | ||||
|  | ||||
| prepare() { | ||||
| 	cd ~/.npm | ||||
| 	npm install --engine-strict asar | ||||
| 	npm install electron --save-dev | ||||
|  | ||||
| 	cd "${srcdir}" | ||||
| 	~/.npm/node_modules/asar/bin/asar.js ef "${name}-${version}/resources/obsidian.asar" icon.png | ||||
| } | ||||
|  | ||||
| build() { | ||||
| 	cd "${srcdir}/${name}/build" | ||||
| 	cmake .. | ||||
| 	make -j12 | ||||
| } | ||||
|  | ||||
| package() { | ||||
| 	install -Dm755 "${srcdir}/${name}/build/admc" "${pkgdir}/usr/bin/admc" | ||||
| 	install -Dm644 "${srcdir}/${name}/build/libadldap.so" "${pkgdir}/usr/lib/libadldap.so" | ||||
| 	install -Dm644 "${srcdir}/${name}/share/admc.desktop" "${pkgdir}/usr/share/applications/admc.desktop" | ||||
| 	install -Dm644 "${srcdir}/${name}/share/admc.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/admc.svg" | ||||
| } | ||||
		Reference in New Issue
	
	Block a user