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') | ||||
| 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') | ||||
|  | ||||
| prepare() { | ||||
| 	cd "${srcdir}" | ||||
|     [[ -d squashfs-root ]] && rm -rf squashfs-root | ||||
|     chmod 755 upscayl-${version}-linux.AppImage | ||||
|     ./upscayl-${version}-linux.AppImage --appimage-extract | ||||
|     sed -i 's|^Exec=.*|Exec=upscayl|' squashfs-root/upscayl.desktop | ||||
|     unzip upscayl-${version}-linux.zip -x resources/128x128.png -d upscayl-${version} | ||||
|     printf '%s\n' 'Icon=org.upscayl.Upscayl' >> upscayl-${version}/resources/org.upscayl.Upscayl.desktop | ||||
| } | ||||
|  | ||||
| package() { | ||||
|     install -Dm644 squashfs-root/usr/share/icons/hicolor/0x0/apps/upscayl.png "${pkgdir}/usr/share/pixmaps/upscayl.png" | ||||
|     install -Dm644 squashfs-root/upscayl.desktop "${pkgdir}/usr/share/applications/upscayl.desktop" | ||||
|     mkdir "${pkgdir}/usr/bin" | ||||
|     install -Dm755 upscayl-${version}-linux.AppImage "${pkgdir}/usr/bin/$_upscayl" | ||||
|     cd "${srcdir}" | ||||
|     install -Dm755 upscayl ${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