updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / profile-sync-daemon / PKGBUILD
blob70bc76b174425e19457bb1903857f09739f443b7
1 # Maintainer: graysky <graysky AT archlinux DOT us>
3 pkgname='profile-sync-daemon'
4 _pkgname_short='psd'
5 pkgver=2.7
6 pkgrel=1
7 pkgdesc='Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.'
8 arch=('any')
9 url='https://wiki.archlinux.org/index.php/Profile-sync-daemon'
10 license=('GPL')
11 depends=('rsync')
12 optdepends=('cron: allow hourly (default) or periodic syncs of tmpfs <--> HDD/SDD storage')
13 conflicts=('firefox-sync' 'firefox-tmpfs-daemon' 'chromium-tmpfs' 'tmpfs-store')
14 replaces=('sync-browsers-daemon')
15 source="http://repo-ck.com/source/$pkgname/$pkgname-$pkgver.tar.xz"
16 backup=("etc/$_pkgname_short.conf")
17 install=readme.install
18 sha256sums=('3675f7b4af739da193e536421288048dcafce10600e24256821121fe36e3d8d8')
20 package() {
21         cd "$srcdir/$pkgname-$pkgver"
22         install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
23         install -Dm644 $_pkgname_short.conf "$pkgdir/etc/$_pkgname_short.conf"
24         install -Dm755 rc.$_pkgname_short "$pkgdir/etc/rc.d/$_pkgname_short"
25         install -Dm755 $_pkgname_short.cron.hourly "$pkgdir/etc/cron.hourly/$_pkgname_short-update"
26         # install manpage
27         gzip -9 $_pkgname_short.manpage
28         install -g 0 -o 0 -Dm 0644 $_pkgname_short.manpage.gz "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
29         install -g 0 -o 0 -Dm 0644 $_pkgname_short.manpage.gz "$pkgdir/usr/share/man/man1/$_pkgname_short.1.gz"