curl: fix cross
This commit is contained in:
		
							parent
							
								
									92bacf2a17
								
							
						
					
					
						commit
						bf36066fa8
					
				
					 1 changed files with 8 additions and 11 deletions
				
			
		|  | @ -2,9 +2,10 @@ pkgver=7.81.0 | ||||||
| pkg_ver=$(echo $pkgver | tr '.' '_') | pkg_ver=$(echo $pkgver | tr '.' '_') | ||||||
| pkgname=curl | pkgname=curl | ||||||
| pkgrel=1 | pkgrel=1 | ||||||
| mkdeps="samu:cmake" | mkdeps="" | ||||||
| deps="openssl" | deps="openssl" | ||||||
| bad="" | bad="" | ||||||
|  | auto_cross | ||||||
| 
 | 
 | ||||||
| fetch() { | fetch() { | ||||||
| 	curl -L "https://github.com/curl/curl/releases/download/curl-$pkg_ver/curl-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.gz | 	curl -L "https://github.com/curl/curl/releases/download/curl-$pkg_ver/curl-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.gz | ||||||
|  | @ -13,20 +14,16 @@ fetch() { | ||||||
| 
 | 
 | ||||||
| build() { | build() { | ||||||
| 	cd $pkgname-$pkgver | 	cd $pkgname-$pkgver | ||||||
| 	mkdir build | 	./configure --prefix=/usr \ | ||||||
| 	cd build | 		--build=$HOST_TRIPLE \ | ||||||
| 	cmake -G Ninja ../ \ | 		--host=$TRIPLE \ | ||||||
| 		-DCMAKE_BUILD_TYPE=Release \ | 		--with-openssl | ||||||
| 		-DCMAKE_INSTALL_PREFIX=/usr \ | 	make | ||||||
| 		-DCMAKE_INSTALL_LIBDIR=lib \ |  | ||||||
| 		-DCURL_CA_BUNDLE="/etc/ssl/cert.pem" |  | ||||||
| 	samu |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| package() { | package() { | ||||||
| 	cd $pkgname-$pkgver | 	cd $pkgname-$pkgver | ||||||
| 	cd build | 	make DESTDIR=$pkgdir install | ||||||
| 	DESTDIR=$pkgdir samu install |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| backup() { | backup() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue