1 # Maintainer: Hubert Kario <kario@wit.edu.pl>
6 pkgdesc="High performance inline data deduplicating file system for FUSE"
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')
24 depts="--with-crypto --with-lzo"
26 if ( pacman -Q hamsterdb 2>/dev/null >/dev/null ); then
27 depts="$depts --with-hamsterdb"
29 echo "==================================";
31 echo "hamsterdb not found, skipping dependancy!";
32 echo "==================================";
35 if ( pacman -Q db 2>/dev/null >/dev/null ); then
36 depts="$depts --with-berkeleydb"
38 echo "==================================";
40 echo "Berkley DB (db) not found, skipping dependancy!";
41 echo "==================================";
44 ./configure $depts --prefix=/usr || 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"