summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9965ef6ab7dbcd5520991e92b724978a587c2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Maintainer: KopfKrieg <archlinux [at] absolem [dot] cc>

pkgname=pacman-cleanup-hook
pkgver=1.0
pkgrel=2
pkgdesc='Pacman hook to cleanup pacman cache, keeps only the latest cache and the currently installed package. No configuration necessary, just install it.'
arch=('any')
depends=('pacman-contrib')
source=('cleanup.hook')
sha1sums=('8352fc69232b9ae2fea24672c15e103fff80a5d4')

package() {
  mkdir -p "${pkgdir}/etc/pacman.d/hooks"
  cp "${srcdir}/cleanup.hook" "${pkgdir}/etc/pacman.d/hooks/cleanup.hook"
  chmod 0644 "${pkgdir}/etc/pacman.d/hooks/cleanup.hook"
  chown root:root "${pkgdir}/etc/pacman.d/hooks/cleanup.hook"
}