updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / compcache / PKGBUILD
blobc0a8cd729c90b6245cbe5da069922ba8b2faa165
1 pkgname=compcache
2 pkgver=20111213
3 pkgrel=1
4 pkgdesc="Compressed virtual swap disc for Linux"
5 url="http://code.google.com/p/compcache/"
6 install=${pkgname}.install
7 license="GPL2"
8 arch=('i686' 'x86_64')
9 options=('zipman')
10 backup=(etc/conf.d/compcache)
11 makedepends=('kernel26-headers' 'mercurial')
13 source=(compcache.conf compcache.init)
14 md5sums=('0c19420ec23bd3402f3a6ccb4ed6f614'
15          '39a9ad057d33670b60160fdce68e6526')
17 _gitroot=https://code.google.com/p/compcache/
18 _gitname=compcache
20 build() {
21   cd $srcdir
23   if [ -e ${_gitname} ] ; then
24     cd ${_gitname}
25     git pull
26     cd ..
27   else
28     git clone ${_gitroot} ${_gitname}
29   fi
31   cd $srcdir/${_gitname}
33   install -Dm 644 $srcdir/${_gitname}/README $pkgdir/usr/share/compcache/README
34   install -Dm 755 $srcdir/${_gitname}/sub-projects/scripts/zram_stats $pkgdir/usr/bin/zram_stats
35   install -Dm 644 $srcdir/compcache.conf $pkgdir/etc/conf.d/compcache 
36   install -Dm 755 $srcdir/compcache.init $pkgdir/etc/rc.d/compcache