diff options
author | Que Quotion | 2018-01-18 02:35:09 +0900 |
---|---|---|
committer | Que Quotion | 2018-01-18 02:35:09 +0900 |
commit | 94bbc96015df83a92071357a7b5d907c4f8ea66f (patch) | |
tree | 269e09e8c89b216022b2a80930d049f044d90f26 /PKGBUILD | |
parent | c7af434397f8cd6b03266024b3bac0526ec26191 (diff) | |
download | aur-94bbc96015df83a92071357a7b5d907c4f8ea66f.tar.gz |
Much better method: use a systemd service to sync at login and logout
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -1,7 +1,7 @@ # Maintainer: Que Quotion <quequotion@bugmenot.com> # Contributor: Ramana Kumar <firstname@member.fsf.org> pkgname=firefox-sync -pkgver=20180112 +pkgver=20180118 pkgrel=1 pkgdesc="Speed up Firefox using tmpfs" arch=('i686' 'x86_64') @@ -9,20 +9,13 @@ url="http://wiki.archlinux.org/index.php/Speed-up_Firefox_using_tmpfs" license=('GPL') depends=('rsync' 'firefox') makedepends=('bash') -source=(${pkgname} 'firefox-sync.desktop') -md5sums=('4e7949eaed8f284233d2ecdecc28534c' - '710f182537f640ce8ca77474e7943113') +source=(${pkgname} "${pkgname}.service") +md5sums=('069e493c9025889787f0181c75f8c727' + 'bc73b9d80232fea8a8bef24bfb125fe6') package() { sed -i "3 c\ LINK=$(ls -d1 ~/.mozilla/firefox/*.default | head -n 1 | xargs basename) " $pkgname - install -D ${pkgname} ${pkgdir}/usr/bin/${pkgname} - cd ${pkgdir}/usr/bin - bash -c '{ -echo "#!/bin/bash" -echo "firefox-sync && firefox \"\${@}\" && firefox-sync" -} > syncfox' - find ${pkgdir}/usr/bin -type f -exec chmod 755 {} \; - find ${pkgdir}/usr/bin -type d -exec chmod 755 {} \; - install -Dm 644 {"${srcdir}","${pkgdir}"/etc/xdg/autostart}/firefox-sync.desktop + install -Dm 755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -Dm 644 {"${srcdir}","${pkgdir}"/usr/lib/systemd/user}/"${pkgname}".service } |