lots of stuffs
This commit is contained in:
		
							parent
							
								
									9554174f21
								
							
						
					
					
						commit
						422942d6d7
					
				
					 19 changed files with 656 additions and 11 deletions
				
			
		
							
								
								
									
										32
									
								
								pkgs/fish/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								pkgs/fish/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| pkgver=3.1.2 | ||||
| pkgname=fish | ||||
| pkgrel=1 | ||||
| 
 | ||||
| fetch() { | ||||
| 	curl -L "https://github.com/fish-shell/fish-shell/releases/download/3.1.2/fish-3.1.2.tar.gz" -o $pkgname-$pkgver.tar.gz | ||||
| 	tar -xf $pkgname-$pkgver.tar.gz | ||||
| 	cd $pkgname-$pkgver | ||||
| 	patch -p1 < ../../output_tputs_cast.patch | ||||
| } | ||||
| 
 | ||||
| build() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	mkdir build | ||||
| 	cd build | ||||
| 	cmake -G Ninja .. \ | ||||
| 		-DCMAKE_BUILD_TYPE=Release \ | ||||
| 		-DCMAKE_EXE_LINKER_FLAGS=-lterminfo \ | ||||
| 		-DCMAKE_INSTALL_PREFIX='/usr' | ||||
| 	samu | ||||
| } | ||||
| 
 | ||||
| package() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cd build | ||||
| 	DESTDIR="$pkgdir/" samu install | ||||
| } | ||||
| 
 | ||||
| license() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cat COPYING | ||||
| } | ||||
							
								
								
									
										8
									
								
								pkgs/fish/git_version_gen.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								pkgs/fish/git_version_gen.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| --- git_version_gen.sh.1
 | ||||
| +++ git_version_gen.sh
 | ||||
| @@ -1,4 +1,4 @@
 | ||||
| -#!/usr/bin/env sh
 | ||||
| +#!/bin/sh
 | ||||
|  # Originally from the git sources (GIT-VERSION-GEN) | ||||
|  # Presumably (C) Junio C Hamano <junkio@cox.net> | ||||
|  # Reused under GPL v2.0 | ||||
							
								
								
									
										11
									
								
								pkgs/fish/output_tputs_cast.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								pkgs/fish/output_tputs_cast.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| --- a/src/output.cpp
 | ||||
| +++ b/src/output.cpp
 | ||||
| @@ -364,7 +364,7 @@
 | ||||
|      scoped_push<outputter_t *> push(&s_tputs_receiver, this); | ||||
|      // On some systems, tputs takes a char*, on others a const char*. | ||||
|      // Like tparm, we just cast it to unconst, that should work everywhere. | ||||
| -    return tputs(const_cast<char *>(str), affcnt, tputs_writer);
 | ||||
| +    return tputs(const_cast<char *>(str), affcnt, (int (*)(int)) tputs_writer);
 | ||||
|  } | ||||
|   | ||||
|  /// Write a wide character to the outputter. This should only be used when writing characters from | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue