diff options
author | Lara Maia | 2015-06-12 00:41:00 -0300 |
---|---|---|
committer | Lara Maia | 2015-06-12 00:41:00 -0300 |
commit | 1cb3d6d231a6d30cc5327dbd2f1dda1b12352058 (patch) | |
tree | ba4860e9f1ca27c4e231f15366eb8c0c84f4dd43 | |
download | aur-1cb3d6d231a6d30cc5327dbd2f1dda1b12352058.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 26 | ||||
-rw-r--r-- | firefox-vacuum.install | 9 | ||||
-rw-r--r-- | firefox-vacuum.service | 13 |
4 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..366330b4177f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = firefox-vacuum + pkgdesc = Script for optimize firefox database + pkgver = 1.1 + pkgrel = 1 + url = http://lara.craft.net.br + install = firefox-vacuum.install + arch = any + license = GPL + depends = sqlite + source = http://lara.craft.net.br/firefox-vacuum.sh + source = firefox-vacuum.service + source = firefox-vacuum.install + md5sums = aab7e95b516e1ecf62d3868adcbaafca + md5sums = c3e55982db31cbd4ffd8905587e8845d + md5sums = 4668361cd676fb04731e7d584f769f7a + +pkgname = firefox-vacuum + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eb1a170e0434 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Lara Maia <lara@craft.net.br> + +pkgname=firefox-vacuum +pkgver=1.1 +pkgrel=1 +pkgdesc="Script for optimize firefox database" +arch=('any') +url="http://lara.craft.net.br" +license=('GPL') +depends=('sqlite') + +source=("http://lara.craft.net.br/$pkgname.sh" + "$pkgname.service" + "$pkgname.install") + +md5sums=('aab7e95b516e1ecf62d3868adcbaafca' + 'c3e55982db31cbd4ffd8905587e8845d' + '4668361cd676fb04731e7d584f769f7a') + +install=$pkgname.install + +package() { + install -Dm755 $pkgname.sh "$pkgdir"/usr/bin/$pkgname + install -Dm644 $pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname@.service +} + diff --git a/firefox-vacuum.install b/firefox-vacuum.install new file mode 100644 index 000000000000..027b7b01e16c --- /dev/null +++ b/firefox-vacuum.install @@ -0,0 +1,9 @@ +post_install() { + echo "You can enable firefox-vacuum@.service for automate the optimization." + echo "This service runs always before shutdown. To use enable the service:" + echo "(E.g) # systemctl enable firefox-vacuum@<your-user>.service" +} + +post_upgrade() { + post_install +} diff --git a/firefox-vacuum.service b/firefox-vacuum.service new file mode 100644 index 000000000000..922630a54024 --- /dev/null +++ b/firefox-vacuum.service @@ -0,0 +1,13 @@ +[Unit] +Description=Optimize firefox profile +Before=umount.target + +[Service] +User=%I +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/true +ExecStop=/usr/bin/firefox-vacuum + +[Install] +WantedBy=multi-user.target |