summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeph2018-03-29 08:45:19 +0200
committerZeph2018-03-29 08:45:19 +0200
commit8aa4e019d0e786003d0aab62d9ea9f781b7f985c (patch)
treeedf1479f3565ad949379fa627f712ba3dadcde94
parent9a4e286face3668ab8886588da77c228bd12b460 (diff)
downloadaur-8aa4e019d0e786003d0aab62d9ea9f781b7f985c.tar.gz
fix pamac systemd timers
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD6
-rw-r--r--pamac.install10
3 files changed, 14 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b6fb5e62aee..58e6e82378b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = pamac-aur
pkgdesc = A Gtk3 frontend for libalpm
pkgver = 6.2.6
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/manjaro/pamac
install = pamac.install
arch = i686
@@ -36,8 +36,8 @@ pkgbase = pamac-aur
conflicts = pamac
options = !emptydirs
backup = etc/pamac.conf
- source = pamac-6.2.6-1.tar.gz::https://github.com/manjaro/pamac/archive/v6.2.6.tar.gz
- sha256sums = 1de6462a370efb9a6547437275fd98cb4617e7a395466bbcb64bc2494793e93c
+ source = pamac-6.2.6-2.tar.gz::https://github.com/manjaro/pamac/archive/v6.2.6.tar.gz
+ sha256sums = 73c968445ea78b0050b27a44bd634a39a20571d2d80c6bbaa05d6f46fcb1ba0b
pkgname = pamac-aur
diff --git a/PKGBUILD b/PKGBUILD
index 8d101858391..89e87724db0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=pamac-aur
_pkgver=6.2.6
pkgver=$_pkgver
-pkgrel=1
+pkgrel=2
pkgdesc="A Gtk3 frontend for libalpm"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/manjaro/pamac"
@@ -50,10 +50,6 @@ package() {
cd "$srcdir/pamac-$pkgver/builddir"
DESTDIR="$pkgdir" ninja install
- # enable systemd timer
- mkdir -p "$pkgdir/etc/systemd/system/multi-user.target.wants"
- ln -sf "/usr/lib/systemd/system/pamac-cleancache.timer" "$pkgdir/etc/systemd/system/multi-user.target.wants"
-# ln -sf "/usr/lib/systemd/system/pamac-mirrorlist.timer" "$pkgdir/etc/systemd/system/multi-user.target.wants"
# remove pamac-tray-appindicator
# rm "$pkgdir/usr/bin/pamac-tray-appindicator"
# rm "$pkgdir/etc/xdg/autostart/pamac-tray-appindicator.desktop"
diff --git a/pamac.install b/pamac.install
index 471206c11b1..8437f732139 100644
--- a/pamac.install
+++ b/pamac.install
@@ -1,7 +1,17 @@
post_install() {
+ # enable systemd timers
+ ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants
+ #ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants
+ # polkit agent
printf '==> An authentication agent is required\n'
printf ' Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce\n'
printf ' have an authentication agent already.\n'
printf ' See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents\n'
printf ' for other desktop environments.\n'
}
+
+post_remove() {
+ # disable systemd timers
+ rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
+ #rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
+} \ No newline at end of file