From 4c946c8cf852aea15829f16ec6fdbc240e2e5d87 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Wed, 12 Apr 2023 10:58:40 +0200 Subject: [PATCH] moving zsh to dotfiles --- dotfiles/PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++ zshrc/PKGBUILD | 16 -------------- 2 files changed, 53 insertions(+), 16 deletions(-) create mode 100644 dotfiles/PKGBUILD delete mode 100644 zshrc/PKGBUILD diff --git a/dotfiles/PKGBUILD b/dotfiles/PKGBUILD new file mode 100644 index 0000000..3501fa0 --- /dev/null +++ b/dotfiles/PKGBUILD @@ -0,0 +1,53 @@ +#Maintainer: Debucquoy Anthony +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 +} diff --git a/zshrc/PKGBUILD b/zshrc/PKGBUILD deleted file mode 100644 index 04d3cc2..0000000 --- a/zshrc/PKGBUILD +++ /dev/null @@ -1,16 +0,0 @@ -# Maintainer: Debucquoy Anthony -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 -}