moving packages
This commit is contained in:
		
							parent
							
								
									d2235a7fc5
								
							
						
					
					
						commit
						7488ce0293
					
				
					 48 changed files with 0 additions and 0 deletions
				
			
		
							
								
								
									
										46
									
								
								linux/musl/build.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								linux/musl/build.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,46 @@ | |||
| pkgver=1.2.2 | ||||
| pkgname=musl | ||||
| deps="" | ||||
| bad="gmake" | ||||
| ext="dev" | ||||
| 
 | ||||
| fetch() { | ||||
| 	curl "https://musl.libc.org/releases/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz | ||||
| 	tar -xf $pkgname-$pkgver.tar.gz | ||||
| } | ||||
| 
 | ||||
| build() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	./configure \ | ||||
| 		--prefix=/usr \ | ||||
| 		--build=$(uname -m)-unknown-linux-musl \ | ||||
| 		--host=$(uname -m)-unknown-linux-musl \ | ||||
| 		--enable-wrapper=no | ||||
| 	gmake | ||||
| } | ||||
| 
 | ||||
| package() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	gmake install DESTDIR=$pkgdir | ||||
| 	rm -r $pkgdir/usr/include | ||||
| 	install -d $pkgdir/usr/bin | ||||
| 
 | ||||
| 	rm $pkgdir/lib/ld-musl-$(uname -m).so.1 | ||||
| 	mv $pkgdir/usr/lib/libc.so $pkgdir/lib/ld-musl-$(uname -m).so.1 | ||||
| 
 | ||||
| 	ln -sr $pkgdir/lib/ld-musl-$(uname -m).so.1 $pkgdir/usr/lib/libc.so | ||||
| 
 | ||||
| 	ln -sr $pkgdir/lib/ld-musl-$(uname -m).so.1 $pkgdir/usr/bin/ldd | ||||
| } | ||||
| 
 | ||||
| package_dev() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	gmake install DESTDIR=$pkgdir | ||||
| 	rm $pkgdir/usr/lib/*.so | ||||
| 	rm -rf $pkgdir/lib | ||||
| } | ||||
| 
 | ||||
| license() { | ||||
| 	cd $pkgname-$pkgver | ||||
| 	cat COPYRIGHT | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue