40 lines
		
	
	
		
			739 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			40 lines
		
	
	
		
			739 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								# Maintainer: DEBUCQUOY Anthony <Debucquoy.anthony@gmail.com>
							 | 
						||
| 
								 | 
							
								pkgname=tonitch-st-git
							 | 
						||
| 
								 | 
							
								pkgver=0.9.r12.5bfe4b3
							 | 
						||
| 
								 | 
							
								pkgrel=1
							 | 
						||
| 
								 | 
							
								pkgdesc="Suckless Terminal with patch for tonitch"
							 | 
						||
| 
								 | 
							
								arch=('x86_64')
							 | 
						||
| 
								 | 
							
								url="https://git.herisson.ovh/tonitch/st"
							 | 
						||
| 
								 | 
							
								license=('MIT')
							 | 
						||
| 
								 | 
							
								depends=()
							 | 
						||
| 
								 | 
							
								makedepends=('git')
							 | 
						||
| 
								 | 
							
								provides=(st)
							 | 
						||
| 
								 | 
							
								conflicts=(st)
							 | 
						||
| 
								 | 
							
								source=("git+$url")
							 | 
						||
| 
								 | 
							
								md5sums=('SKIP')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								pkgver() {
							 | 
						||
| 
								 | 
							
									cd "$srcdir/st"
							 | 
						||
| 
								 | 
							
									printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# prepare() {
							 | 
						||
| 
								 | 
							
								# 	cd "$srcdir/${pkgname%}"
							 | 
						||
| 
								 | 
							
								# }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								build() {
							 | 
						||
| 
								 | 
							
									cd "$srcdir/st"
							 | 
						||
| 
								 | 
							
									make
							 | 
						||
| 
								 | 
							
								} 
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# check() {
							 | 
						||
| 
								 | 
							
								# 	cd "$srcdir/${pkgname}"
							 | 
						||
| 
								 | 
							
								# 	make -k check
							 | 
						||
| 
								 | 
							
								# }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package() {
							 | 
						||
| 
								 | 
							
									cd "$srcdir/st"
							 | 
						||
| 
								 | 
							
									make PREFIX=/usr DESTDIR="$pkgdir/" install
							 | 
						||
| 
								 | 
							
									install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
							 | 
						||
| 
								 | 
							
								}
							 |