summaryrefslogtreecommitdiff
path: root/pambase-no-systemd-home/PKGBUILD
blob: db7d1d56c36b7418e16fe2abfb3c185654426180 (plain)
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
arch=('any')
pkgname=pambase-no-systemd-home
pkgver=20200721.1
pkgrel=2

source=("https://arch.eckner.net/archlinux/pool/packages/pambase-$pkgver-$pkgrel-any.pkg.tar.zst")
sha512sums=('2e7051c21147fb37db5b5ffb581e86d4')
provides=("pambase=$pkgver-$pkgrel")

package() {
  sed -i '
    /pam_systemd_home\.so/d
  ' "$srcdir/etc/pam.d/system-auth"
  mv "$srcdir/etc" "$pkgdir/"

  while read -r var eq value; do
    [ "x$eq" = 'x=' ] || continue
    case "$var" in
      pkgdesc|url|license)
        eval "$var"'="$value"'
      ;;
      backup)
        backup+=("$value")
      ;;
    esac
  done < "$srcdir/.PKGINFO"
}