forked from Plemya-x/alr-repo
		
	nlohmann-json
This commit is contained in:
		
							
								
								
									
										31
									
								
								nlohmann-json/lure.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								nlohmann-json/lure.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | |||||||
|  | name='nlohmann-json' | ||||||
|  | version='3.7.3' | ||||||
|  | release='1' | ||||||
|  | desc='Header-only JSON library for Modern C++' | ||||||
|  | homepage='https://github.com/nlohmann/json' | ||||||
|  | maintainer="Евгений Храмов <xpamych@yandex.ru>" | ||||||
|  | architectures=('amd64') | ||||||
|  | licenses='MIT' | ||||||
|  | provides=('nlohmann-json') | ||||||
|  | conflicts=('nlohmann-json') | ||||||
|  |  | ||||||
|  | build_deps_rosa=('cmake' 'git') | ||||||
|  |  | ||||||
|  | sources=("git+https://github.com/nlohmann/json.git") | ||||||
|  | checksums=('SKIP') | ||||||
|  |  | ||||||
|  |  | ||||||
|  | build() { | ||||||
|  | 	cd "${srcdir}/${name}-${version}" | ||||||
|  | 	mkdir build | ||||||
|  | 	cd ./build | ||||||
|  | 	cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF | ||||||
|  | 	make | ||||||
|  | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | package() { | ||||||
|  | 	cd "${srcdir}/${name}-${version}/build" | ||||||
|  | 	make "DESTDIR=${pkddir}" install | ||||||
|  | 	install -Dm644 "-t${pkddir}/usr/share/licenses/${name}" ../json/LICENSE.MIT | ||||||
|  | } | ||||||
| @@ -21,7 +21,7 @@ build_deps=('lib64alsa-oss-devel.x86_64' \ | |||||||
|        'git' \ |        'git' \ | ||||||
|        'glib2-devel' \ |        'glib2-devel' \ | ||||||
|        'jansson-devel' \ |        'jansson-devel' \ | ||||||
|        'lib64json-glib-devel' \ |        'hlohmann-json' \ | ||||||
|        'lib64avcodec58' \ |        'lib64avcodec58' \ | ||||||
|        'lib64avdevice58' \ |        'lib64avdevice58' \ | ||||||
|        'lib64rist-devel' \ |        'lib64rist-devel' \ | ||||||
|   | |||||||
| @@ -33,12 +33,12 @@ prepare() { | |||||||
| } | } | ||||||
|  |  | ||||||
| build() { | build() { | ||||||
| 	cd "ProtonUp-Qt-${version}" | 	cd "${srcdir}/ProtonUp-Qt-${version}" | ||||||
| 	python -m build --wheel --no-isolation | 	python -m build --wheel --no-isolation | ||||||
| } | } | ||||||
|  |  | ||||||
| package() { | package() { | ||||||
| 	cd "ProtonUp-Qt-${version}" | 	cd "${srcdir}/ProtonUp-Qt-${version}" | ||||||
| 	#python -m installer --destdir="${pkgdir}" dist/*.whl | 	#python -m installer --destdir="${pkgdir}" dist/*.whl | ||||||
| 	cp -r share "${pkgdir}/usr/" | 	cp -r share "${pkgdir}/usr/" | ||||||
| 	install -Dm755 "${srcdir}/pupgui2.sh" "${pkgdir}/usr/bin/${name}" | 	install -Dm755 "${srcdir}/pupgui2.sh" "${pkgdir}/usr/bin/${name}" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user