forked from Plemya-x/alr-repo
		
	revert to install asar from npm
This commit is contained in:
		
							
								
								
									
										21
									
								
								asar/lure.sh
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								asar/lure.sh
									
									
									
									
									
								
							| @@ -1,21 +0,0 @@ | ||||
| name='asar' | ||||
| version='3.2.2' | ||||
| release='1' | ||||
| desc='Asar is a simple extensive archive format, it works like tar that concatenates all files together without compression, while having random access support.' | ||||
| homepage='https://github.com/electron/asar' | ||||
| architectures=('amd64') | ||||
| license=('MIT') | ||||
| provides=('asar') | ||||
| conflicts=('asar') | ||||
|  | ||||
| sources_amd64=("https://github.com/electron/asar/archive/refs/tags/v3.2.2.tar.gz") | ||||
| checksums=('SKIP') | ||||
|  | ||||
| package() { | ||||
|    	install -Dm755 "${srcdir}/${name}-${version}/bin/${name}.js" "${pkgdir}/$HOME/.npm/node_modules/${name}/bin" | ||||
|     install -Dm644 "${srcdir}/${name}-${version}/package.json" "${pkgdir}/$HOME/.npm/node_modules/${name}/package.json" | ||||
|     cd "${srcdir}/${name}-${version}/lib/" | ||||
|     find . -type d -exec install -d {,"${pkgdir}/$HOME/.npm/node_modules/asar/lib/"}{} \; | ||||
| 	find . -type f -exec install -D {,"${pkgdir}/$HOME/.npm/node_modules/asar/lib/"}{} \; | ||||
|     install -Dm644 "${srcdir}/${name}-${version}/LICENSE.md" "${pkgdir}/$HOME/.npm/node_modules/${name}/LICENSE.md" | ||||
| } | ||||
| @@ -10,17 +10,19 @@ conflicts=('obsidian') | ||||
|  | ||||
| deps=('zlib' 'hicolor-icon-theme' 'fuse3') | ||||
| deps_debian=('zlib1g' 'hicolor-icon-theme' 'fuse3') | ||||
| build_deps=('npm' 'asar') | ||||
| build_deps=('npm') | ||||
|  | ||||
| sources_amd64=("https://github.com/obsidianmd/obsidian-releases/releases/download/v${version}/${name}-${version}.tar.gz") | ||||
| checksums_amd64=('SKIP') | ||||
|  | ||||
| prepare() { | ||||
|     mkdir ~/.npm | ||||
| 	cd ~/.npm | ||||
| 	npm install --engine-strict asar | ||||
| 	npm install electron --save-dev | ||||
|  | ||||
| 	cd "${srcdir}" | ||||
| 	/usr/bin/asar/asar ef "${name}-${version}/resources/obsidian.asar" icon.png | ||||
| 	~/.npm/node_modules/asar/bin/asar.js ef "${name}-${version}/resources/obsidian.asar" icon.png | ||||
| } | ||||
|  | ||||
| package() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user