Added linux
This commit is contained in:
		
							parent
							
								
									3182a6f943
								
							
						
					
					
						commit
						81f080d2ed
					
				
					 9 changed files with 4921 additions and 13 deletions
				
			
		
							
								
								
									
										36
									
								
								pkgs/flex/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								pkgs/flex/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | |||
| pkgver=2.6.4 | ||||
| pkgname=flex | ||||
| bad="" | ||||
| ext="doc" | ||||
| 
 | ||||
| fetch() { | ||||
| 	curl -L https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz -o $pkgname-$pkgver.tar.gz | ||||
| 	tar -xf $pkgname-$pkgver.tar.gz | ||||
| } | ||||
| 
 | ||||
| build() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	./configure \ | ||||
| 		--prefix=/usr | ||||
| 	make | ||||
| } | ||||
| 
 | ||||
| package() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	make install DESTDIR=$pkgdir | ||||
| 	ln -sr $pkgdir/usr/bin/flex $pkgdir/usr/bin/lex | ||||
| 	rm -r $pkgdir/usr/share | ||||
| 	rm -r $pkgdir/usr/lib/*.a | ||||
| 	rm -r $pkgdir/usr/lib/*.la | ||||
| } | ||||
| 
 | ||||
| package_doc() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	make install DESTDIR=$pkgdir | ||||
| 	rm -r $pkgdir/usr/bin | ||||
| } | ||||
| 
 | ||||
| license() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cat LICENSE | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue