nlohmann-json
This commit is contained in:
		
							
								
								
									
										34
									
								
								nlohmann-json/alr.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								nlohmann-json/alr.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
name='nlohmann-json'
 | 
			
		||||
version='3.11.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#tag=v${version}")
 | 
			
		||||
checksums=('SKIP')
 | 
			
		||||
 | 
			
		||||
build() {
 | 
			
		||||
    cd "${srcdir}"
 | 
			
		||||
    mkdir build
 | 
			
		||||
    cd ./build
 | 
			
		||||
    cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF
 | 
			
		||||
    make -j$(nproc)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
check() {
 | 
			
		||||
    cd "${srcdir}/build"
 | 
			
		||||
    cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON
 | 
			
		||||
    make -j$(nproc)
 | 
			
		||||
    ctest --output-on-failure
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package() {
 | 
			
		||||
    cd "${srcdir}/build"
 | 
			
		||||
    make "DESTDIR=${pkgdir}" install
 | 
			
		||||
}
 | 
			
		||||
@@ -55,6 +55,7 @@ build_deps_rosa=('lib64alsa-oss-devel.x86_64'
 | 
			
		||||
	'x264-devel')
 | 
			
		||||
build_deps_redos=('alsa-plugins-oss'
 | 
			
		||||
	'cmake'
 | 
			
		||||
	
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
sources=("https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user