updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / lessfs / PKGBUILD
blobade30ee59c2aadf49790d2f798a6202d16438f4e
1 # Maintainer:  Hubert Kario <kario@wit.edu.pl>
3 pkgname=lessfs
4 pkgver=1.5.4
5 pkgrel=1
6 pkgdesc="High performance inline data deduplicating file system for FUSE"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 url="http://www.lessfs.com/"
11 makedepends=('gcc' 'make' 'fuse' 'tokyocabinet' 'mhash' 'openssl')
12 depends=('tokyocabinet' 'mhash' 'openssl' 'lzo2')
13 optdepends=('hamsterdb: alternative database to tokyo cabinet'
14             'db: different alternative database to tokyo cabinet')
15 backup=('etc/lessfs/sample.cfg')
16 #conflicts=("$_pkgname")
17 #provides=("$_pkgname=$pkgver")
19 source=(http://sourceforge.net/projects/lessfs/files/lessfs/lessfs-$pkgver/lessfs-$pkgver.tar.gz/download)
20 sha1sums=('c4f1931f4c30fb5a570c8f2a856d232ba9fe9256')
22 build() {
23         cd "$pkgname-$pkgver"
24         depts="--with-crypto --with-lzo"
26         if ( pacman -Q hamsterdb 2>/dev/null >/dev/null ); then
27             depts="$depts --with-hamsterdb"
28         else
29             echo "==================================";
30             echo " WARNING!";
31             echo "hamsterdb not found, skipping dependancy!";
32             echo "==================================";
33         fi
35         if ( pacman -Q db 2>/dev/null >/dev/null ); then
36             depts="$depts --with-berkeleydb"
37         else
38             echo "==================================";
39             echo " WARNING!";
40             echo "Berkley DB (db) not found, skipping dependancy!";
41             echo "==================================";
42         fi
44         ./configure $depts --prefix=/usr || return 1 ;
46         make || return 1
47         make prefix="$pkgdir/usr" install || return 1
48         mkdir -p "$pkgdir/etc/lessfs"
49         install -m 644 -D etc/lessfs.cfg-hamsterdb $pkgdir/etc/lessfs/sample.cfg-hamsterdb
50         install -m 644 -D etc/lessfs.cfg-tokyocabinet $pkgdir/etc/lessfs/sample.cfg-tokyocabinet
51         install -m 644 -D etc/lessfs.cfg $pkgdir/etc/lessfs/sample.cfg
52         mkdir -p "$pkgdir/usr/share/doc/lessfs"
53         install -m 644 -D COLLISION.probability COPYING FAQ README README.berkeleydb README.chunk_io README.crypto README.file_io README.performance_or_suffer README.replication README.upgrade_to_1.5.2_with_replication ChangeLog "$pkgdir/usr/share/doc/lessfs"