Added templates, file and less
This commit is contained in:
		
							parent
							
								
									422942d6d7
								
							
						
					
					
						commit
						7ef735574d
					
				
					 4 changed files with 138 additions and 0 deletions
				
			
		
							
								
								
									
										46
									
								
								pkgs/file/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								pkgs/file/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,46 @@ | |||
| pkgname=file | ||||
| pkgver=5.39 | ||||
| ext="dev:doc" | ||||
| 
 | ||||
| fetch() { | ||||
| 	curl "ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz | ||||
| 	tar -xf $pkgname-$pkgver.tar.gz | ||||
| } | ||||
| 
 | ||||
| build() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	./configure \ | ||||
| 		--prefix=/usr \ | ||||
| 		--build=x86_64-unknown-linux-musl \ | ||||
| 		--host=x86_64-unknown-linux-musl | ||||
| 
 | ||||
| 	make | ||||
| } | ||||
| 
 | ||||
| package() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	make install DESTDIR=$pkgdir | ||||
| 	rm $pkgdir/usr/lib/*.la | ||||
| 	rm -r $pkgdir/usr/include | ||||
| 	rm -r $pkgdir/usr/share/man | ||||
| 	rm -r $pkgdir/usr/lib/pkgconfig | ||||
| } | ||||
| 
 | ||||
| package_dev() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	make install DESTDIR=$pkgdir | ||||
| } | ||||
| 
 | ||||
| package_doc() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	make install DESTDIR=$pkgdir | ||||
| 	rm -r $pkgdir/usr/lib | ||||
| 	rm -r $pkgdir/usr/bin | ||||
| 	rm -r $pkgdir/usr/include | ||||
| 	rm -r $pkgdir/usr/share/misc | ||||
| } | ||||
| 
 | ||||
| license() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cat COPYING | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue