forked from Plemya-x/alr-repo
		
	f
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -1,21 +0,0 @@ | |||||||
| #!/usr/bin/bash |  | ||||||
|  |  | ||||||
| set -euo pipefail |  | ||||||
|  |  | ||||||
| name=@PKGNAME@ |  | ||||||
| electron=@ELECTRON@ |  | ||||||
| flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf" |  | ||||||
|  |  | ||||||
| declare -a flags |  | ||||||
|  |  | ||||||
| if [[ -f "${flags_file}" ]]; then |  | ||||||
|     mapfile -t < "${flags_file}" |  | ||||||
| fi |  | ||||||
|  |  | ||||||
| for line in "${MAPFILE[@]}"; do |  | ||||||
|     if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then |  | ||||||
|         flags+=("${line}") |  | ||||||
|     fi |  | ||||||
| done |  | ||||||
|  |  | ||||||
| exec ~/.npm/node_modules/electron/dist/electron /usr/lib/${name}/app.asar "${flags[@]}" "$@" |  | ||||||
| @@ -14,7 +14,9 @@ sources=("https://dl.discordapp.net/apps/linux/${version}/${name}-${version}.tar | |||||||
| checksums=('SKIP') | checksums=('SKIP') | ||||||
|  |  | ||||||
| package() { | package() { | ||||||
| install -Dm0755 "${scriptdir}/Discord/" "${pkgdir}/usr/share/discord/" | cd "${srcdir}/Discord" | ||||||
|  | find . -type d -exec install -d {,"${pkgdir}/usr/share/discord/"}{} \; | ||||||
|  | find . -type f -exec install -D {,"${pkgdir}/usr/share/discord/"}{} \; | ||||||
| install -Dm644 "${srcdir}/Discord/discord.png" "${pkgdir}/usr/share/pixmaps/discord.png" | install -Dm644 "${srcdir}/Discord/discord.png" "${pkgdir}/usr/share/pixmaps/discord.png" | ||||||
| install -Dm644 "${srcdir}/Discord/discord.desktop" "${pkgdir}/usr/share/applications/discord.desktop" | install -Dm644 "${srcdir}/Discord/discord.desktop" "${pkgdir}/usr/share/applications/discord.desktop" | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user