summaryrefslogtreecommitdiff
path: root/pambase-no-systemd-home/PKGBUILD
blob: 8210b5f7ddb2a9b1d840f9c9818c341e2ad2bac2 (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=('44fcf1a087d76209a5299267d090a84a907a5afd300394b0e7b53961ec41091e3ef28309efcc0ee1c1fce306363eb38f5d4ec424c6a6955feb5c1a5a9c1bbfc9')
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"
}