moving zsh to dotfiles
This commit is contained in:
		
							
								
								
									
										53
									
								
								dotfiles/PKGBUILD
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								dotfiles/PKGBUILD
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,53 @@
 | 
			
		||||
#Maintainer: Debucquoy Anthony <debucquoy.anthony@gmail.com>
 | 
			
		||||
pkgbase="dotfiles"
 | 
			
		||||
pkgname=(
 | 
			
		||||
	"zshrc-dotfiles"
 | 
			
		||||
		)
 | 
			
		||||
pkgver=r2.cb102e6
 | 
			
		||||
pkgrel=1
 | 
			
		||||
pkgdesc="dotfiles for tonitch"
 | 
			
		||||
arch=('any')
 | 
			
		||||
url="https://git.herisson.ovh/tonitch/dotfiles"
 | 
			
		||||
license=('unknown')
 | 
			
		||||
groups=(tonitch-dotfiles)
 | 
			
		||||
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
 | 
			
		||||
# provides=("${pkgname%-VCS}")
 | 
			
		||||
# conflicts=("${pkgname%-VCS}")
 | 
			
		||||
source=('git+https://git.herisson.ovh/tonitch/dotfiles')
 | 
			
		||||
sha256sums=('SKIP')
 | 
			
		||||
 | 
			
		||||
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
 | 
			
		||||
# a description of each element in the source array.
 | 
			
		||||
 | 
			
		||||
pkgver() {
 | 
			
		||||
	cd "$srcdir/${pkgbase}"
 | 
			
		||||
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# prepare() {
 | 
			
		||||
# 	cd "$srcdir/${pkgname%-VCS}"
 | 
			
		||||
# 	patch -p1 -i "$srcdir/${pkgname%-VCS}.patch"
 | 
			
		||||
# }
 | 
			
		||||
 | 
			
		||||
# build() {
 | 
			
		||||
# 	cd "$srcdir/${pkgname%-VCS}"
 | 
			
		||||
# 	./autogen.sh
 | 
			
		||||
# 	./configure --prefix=/usr
 | 
			
		||||
# 	make
 | 
			
		||||
# }
 | 
			
		||||
 | 
			
		||||
# check() {
 | 
			
		||||
# 	cd "$srcdir/${pkgname%-VCS}"
 | 
			
		||||
# 	make -k check
 | 
			
		||||
# }
 | 
			
		||||
 | 
			
		||||
package_dotfiles() {
 | 
			
		||||
	# Should contain all other packages
 | 
			
		||||
	package_zshrc-dotfiles
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package_zshrc-dotfiles() {
 | 
			
		||||
	depends=('zsh' 'zsh-autosuggestions' 'zsh-history-substring-search' 'zsh-syntax-highlighting' 'zsh-vi-mode')
 | 
			
		||||
	optdepends=('zsh-lovers')
 | 
			
		||||
	install -Dm644 ${srcdir}/dotfiles/zshrc  ${pkgdir}/etc/zsh/zshrc
 | 
			
		||||
}
 | 
			
		||||
@ -1,16 +0,0 @@
 | 
			
		||||
# Maintainer: Debucquoy Anthony <Debucquoy.anthony@gmail.com>
 | 
			
		||||
pkgname=zsh-config-tonitch
 | 
			
		||||
pkgver=1
 | 
			
		||||
pkgrel=1
 | 
			
		||||
pkgdesc="Config for tonitch's zsh"
 | 
			
		||||
arch=(x86_64)
 | 
			
		||||
license=('unknown')
 | 
			
		||||
depends=('zsh' 'zsh-autosuggestions' 'zsh-history-substring-search' 'zsh-syntax-highlighting' 'zsh-vi-mode')
 | 
			
		||||
optdepends=('zsh-lovers')
 | 
			
		||||
source=("https://raw.githubusercontent.com/tonitch/dotfiles/master/.zshrc")
 | 
			
		||||
sha256sums=('705475f42e0744abe7b6c6bda42178776b58a76fc7fab4be0b60b42dfa08873e')
 | 
			
		||||
 | 
			
		||||
package() {
 | 
			
		||||
	cd "$srcdir"
 | 
			
		||||
	install -Dm644 .zshrc  ${pkgdir}/etc/zsh/zshrc
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user