Modified lazypkg.sh to work on test system; fakeroot can't be built due to autotools dep. Added git!
This commit is contained in:
		
							parent
							
								
									134686299c
								
							
						
					
					
						commit
						6c00de23cc
					
				
					 2 changed files with 36 additions and 4 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| #!/bin/dash | ||||
| #!/bin/sh | ||||
| export MAKEFLAGS="-j6" | ||||
| export CC=clang | ||||
| export CXX=clang++ | ||||
|  | @ -42,7 +42,7 @@ cd $dir/out/$pkgname/ | |||
| find * >> $dir/out/$pkgname/lib/lazypkg/$pkgname | ||||
| 
 | ||||
| cd $dir/out/$pkgname | ||||
| tar -cJf ../$pkgname.$pkgver.tar.xz * | ||||
| tar -cf ../$pkgname.$pkgver.tar.xz * | ||||
| 
 | ||||
| echo $ext | tr ':' '\n' | while read e; do | ||||
| 	echo \$e | ||||
|  | @ -75,10 +75,10 @@ EOF | |||
| 	find * >> $dir/out/$pkgname-\$e/lib/lazypkg/$pkgname-\$e | ||||
| 
 | ||||
|     cd $dir/out/$pkgname-\$e | ||||
|     tar -cJf ../$pkgname-\$e.$pkgver.tar.xz * | ||||
|     tar -cf ../$pkgname-\$e.$pkgver.tar.xz * | ||||
| 
 | ||||
| done | ||||
| 
 | ||||
| 
 | ||||
| " | fakeroot sh | ||||
| " | sh | ||||
| cd $dir | ||||
|  |  | |||
							
								
								
									
										32
									
								
								pkgs/git/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								pkgs/git/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| pkgver=2.30.0 | ||||
| pkgname=git | ||||
| pkgrel=1 | ||||
| bad="gmake" | ||||
| ext="doc" | ||||
| 
 | ||||
| fetch() { | ||||
| 	curl -L "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.0.tar.xz" -o $pkgname-$pkgver.tar.xz | ||||
| 	tar -xf $pkgname-$pkgver.tar.xz | ||||
| } | ||||
| 
 | ||||
| build() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 prefix=/ INSTALL_SYMLINKS=1 | ||||
| 	# Need to run twice for it to work ¯\_(ツ)_/¯ | ||||
| 	# Some issue with `msgfmt` 'cause I'm using gettext-tiny but idk why it works on the second run | ||||
| 	gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 prefix=/ INSTALL_SYMLINKS=1 | ||||
| } | ||||
| 
 | ||||
| package() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 install prefix=/ DESTDIR=$pkgdir INSTALL_SYMLINKS=1 | ||||
| } | ||||
| 
 | ||||
| package_doc() { | ||||
| 	gmake NO_PERL=1 NO_REGEX=NeedsStartEnd NO_TCLTK=1 NO_MSGFMT_EXTENDED_OPTIONS=1 install-man prefix=/ DESTDIR=$pkgdir INSTALL_SYMLINKS=1 | ||||
| } | ||||
| 
 | ||||
| license() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cat COPYING | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue