~whynothugo/dotfiles

ref: 38b900dc12ae810eda071e6fd1e4f25db6bb3a2a dotfiles/packages/whynothugo-paru/PKGBUILD -rw-r--r-- 1.1 KiB
38b900dc — Hugo Osvaldo Barrera nvim: Add borders to hover float windows 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>

pkgname=whynothugo-paru
pkgver=1
pkgrel=1
pkgdesc="Configure paru with a local repo and chroot."
arch=("x86_64" "aarch64")
depends=("paru" "holo" "devtools" "pacman-dropins" "asp")
source=(
  "pacman_paru.conf"
  "paru.conf"
  "tmpfiles_paru.conf"
)
sha256sums=('22711597a7210b33619433c54c902b1c82fa7089f5ef8026a8fab64a62fdd1ab'
            '510a7f075da0c4615767e3c8fa302d5fcfdc3c96a8dde48179536e0db13c8acc'
            '73c992d08ca98df82428f18c1e17e43a55e5c301643168b022db4102e3eb0873')
install="whynothugo-paru.install"

package() {
  cd "$srcdir" || exit 2

  # This file will replace the one in /etc/paru.conf, which is owned by package "paru":
  install -Dm 0644 "$srcdir/paru.conf" "$pkgdir/usr/share/holo/files/40-paru/etc/paru.conf"

  # Configure pacman to use the local paru repo too. Handy for re-installing a
  # previously built package that has not changed in the AUR.
  install -Dm 0644 "$srcdir/pacman_paru.conf" "$pkgdir/etc/pacman.d/30-paru.conf"

  # Create paru chroot dir:
  install -Dm 0644 "$srcdir/tmpfiles_paru.conf" "$pkgdir/usr/lib/tmpfiles.d/paru.conf"
}