# $Id$
# Maintainer: Daniel Micay <danielmicay@gmail.com>
pkgname=hidepid
pkgver=1
pkgrel=1
pkgdesc='Hide process information from other users'
arch=(any)
url='https://archlinux.org/'
license=('GPL2')
source=(hidepid.conf hidepid.service)
md5sums=('ad3f003e49e9441c1fa8bd04ceb9f80b'
         'de6db359522bcbab39e051a71b1ec384')

package() {
  install -Dm644 hidepid.conf "$pkgdir/usr/lib/systemd/system/systemd-logind.service.d/hidepid.conf"
  install -Dm644 hidepid.service "$pkgdir/usr/lib/systemd/system/hidepid.service"
  mkdir -p "$pkgdir/usr/lib/systemd/system/local-fs.target.wants/"
  ln -s -t "$pkgdir/usr/lib/systemd/system/local-fs.target.wants/" ../hidepid.service
}
