~whynothugo/dotfiles

ref: a161f8c207adea1fb51092ffa4bb65ae258088d9 dotfiles/packages/whynothugo-paru/PKGBUILD -rw-r--r-- 944 bytes
a161f8c2 — Hugo Osvaldo Barrera Stop tracking checksum for repo-local files 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
32
33
# 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=(
  "SKIP"
  "SKIP"
  "SKIP"
)
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"
}