summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKopfKrieg2018-08-10 15:35:31 +0200
committerKopfKrieg2018-08-10 15:35:31 +0200
commit4c96e3ea8ab8b3393f1512efd69250f00b842395 (patch)
tree88dc07652b56c1424cbcf9872624b3738aa6ae11
parentf2b56478fbed82bf32e60baf50454acb268fbb20 (diff)
downloadaur-4c96e3ea8ab8b3393f1512efd69250f00b842395.tar.gz
Improved PKGBUILD
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 3 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f0b9bdbf53c7..600452e435a2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = pacman-cleanup-hook
pkgdesc = Pacman hook to cleanup pacman cache, keeps only the latest cache and the currently installed package. No configuration necessary, just install it.
pkgver = 1.0
- pkgrel = 4
+ pkgrel = 5
arch = any
depends = pacman-contrib
source = cleanup.hook
diff --git a/PKGBUILD b/PKGBUILD
index a029cb35f786..da92d04f0f3f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=pacman-cleanup-hook
pkgver=1.0
-pkgrel=4
+pkgrel=5
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')
@@ -10,8 +10,5 @@ source=('cleanup.hook')
sha1sums=('8352fc69232b9ae2fea24672c15e103fff80a5d4')
package() {
- mkdir -p "${pkgdir}/usr/share/libalpm/hooks"
- cp "${srcdir}/cleanup.hook" "${pkgdir}/usr/share/libalpm/hooks/cleanup.hook"
- chmod 0644 "${pkgdir}/usr/share/libalpm/hooks/cleanup.hook"
- chown root:root "${pkgdir}/usr/share/libalpm/hooks/cleanup.hook"
+ install -D -m0644 "${srcdir}/cleanup.hook" "${pkgdir}/usr/share/libalpm/hooks/cleanup.hook"
}