forked from Plemya-x/alr-repo
		
	redos
This commit is contained in:
		| @@ -13,20 +13,27 @@ deps=('fuse2' 'nss' 'zlib') | |||||||
| deps_redos=('fuse3' 'nss' 'zlib') | deps_redos=('fuse3' 'nss' 'zlib') | ||||||
| build_deps=('util-linux') | build_deps=('util-linux') | ||||||
|  |  | ||||||
| sources=("https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-linux.AppImage?~name=upscayl-${version}-linux.AppImage") | sources=("https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-linux.zip") | ||||||
| checksums=('SKIP') | checksums=('SKIP') | ||||||
|  |  | ||||||
| prepare() { | prepare() { | ||||||
| 	cd "${srcdir}" | 	cd "${srcdir}" | ||||||
|     [[ -d squashfs-root ]] && rm -rf squashfs-root |     [[ -d squashfs-root ]] && rm -rf squashfs-root | ||||||
|     chmod 755 upscayl-${version}-linux.AppImage |     unzip upscayl-${version}-linux.zip -x resources/128x128.png -d upscayl-${version} | ||||||
|     ./upscayl-${version}-linux.AppImage --appimage-extract |     printf '%s\n' 'Icon=org.upscayl.Upscayl' >> upscayl-${version}/resources/org.upscayl.Upscayl.desktop | ||||||
|     sed -i 's|^Exec=.*|Exec=upscayl|' squashfs-root/upscayl.desktop |  | ||||||
| } | } | ||||||
|  |  | ||||||
| package() { | package() { | ||||||
|     install -Dm644 squashfs-root/usr/share/icons/hicolor/0x0/apps/upscayl.png "${pkgdir}/usr/share/pixmaps/upscayl.png" |     cd "${srcdir}" | ||||||
|     install -Dm644 squashfs-root/upscayl.desktop "${pkgdir}/usr/share/applications/upscayl.desktop" |     install -Dm755 upscayl ${pkgdir}/usr/bin/upscayl | ||||||
|     mkdir "${pkgdir}/usr/bin" |  | ||||||
|     install -Dm755 upscayl-${version}-linux.AppImage "${pkgdir}/usr/bin/$_upscayl" |     cd upscayl-${version}/resources | ||||||
|  |  | ||||||
|  |     install -dm755 ${pkgdir}/usr/share/applications | ||||||
|  |     install -dm755 ${pkgdir}/usr/share/pixmaps | ||||||
|  |     mv org.upscayl.Upscayl.desktop ${pkgdir}/usr/share/applications/ | ||||||
|  |     mv 512x512.png ${pkgdir}/usr/share/pixmaps/org.upscayl.Upscayl.png | ||||||
|  |  | ||||||
|  |     install -dm755 ${pkgdir}/opt/upscayl | ||||||
|  |     mv * ${pkgdir}/opt/upscayl/ | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user