Add util-linux
This commit is contained in:
		
							parent
							
								
									3e0992c3ce
								
							
						
					
					
						commit
						31d0732a36
					
				
					 1 changed files with 37 additions and 0 deletions
				
			
		
							
								
								
									
										37
									
								
								pkgs/util-linux/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								pkgs/util-linux/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | ||||||
|  | pkgver=2.36.2 | ||||||
|  | pkgname=util-linux | ||||||
|  | pkgrel=1 | ||||||
|  | 
 | ||||||
|  | fetch() { | ||||||
|  | 	curl "https://mirrors.edge.kernel.org/pub/linux/utils/$pkgname/v2.36/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz | ||||||
|  | 	tar -xf $pkgname-$pkgver.tar.xz | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | build() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	./configure \ | ||||||
|  | 		--prefix=/usr \ | ||||||
|  | 		--build=x86_64-unknown-linux-musl \ | ||||||
|  | 		--host=x86_64-unknown-linux-musl \ | ||||||
|  | 		--disable-all-programs \ | ||||||
|  | 		--enable-libsmartcols \ | ||||||
|  | 		--enable-libuuid \ | ||||||
|  | 		--enable-libfdisk \ | ||||||
|  | 		--enable-fdisks | ||||||
|  | 		 | ||||||
|  | 
 | ||||||
|  | 	make LDFLAGS="-lterminfo" | ||||||
|  | 	 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | package() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	make install DESTDIR=$pkgdir | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | license() { | ||||||
|  | 	cd $pkgname-$pkgver | ||||||
|  | 	cat COPYING | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue