# Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=encfs
pkgver=1.8.1
pkgrel=1gv
source=("https://github.com/vgough/encfs/releases/download/v1.8.1/encfs-1.8.1.tar.gz")
docs=("ABOUT-NLS" "AUTHORS" "ChangeLog" "COPYING" "INSTALL" "README")
url=https://github.com/vgough/encfs

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"encfs (filesystem encryption through FUSE)"
"EncFS provides an encrypted filesystem in user-space. It runs without"
"any special permissions and uses the FUSE library and Linux kernel"
"module to provide the filesystem interface."
"As with most encrypted filesystems, Encfs is meant to provide security"
"against off-line attacks; ie your notebook or backups fall into the"
"wrong hands, etc. The way Encfs works is different from the \"loopback\""
"encrypted filesystem support built into the Linux kernel because it"
"works on files at a time, not an entire block device. This is a big"
"advantage in some ways, but does not come without a cost. "
)


build() {
	set -e
	
	cd $startdir/src/$pkgname-$pkgver
	autoreconf -vif
	./configure \
	  --prefix=/usr \
	  --sysconfdir=/etc \
	  --localstatedir=/var \
	  --libdir=/usr/lib${LIBDIRSUFFIX} \
	  --mandir=/usr/man \
	  --infodir=/usr/info \
	  --docdir=/usr/doc/$pkgname-$pkgver \
	  --build=$arch-slackware-linux \
	  --with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \
	  --disable-static
	make -j $numjobs
	make install DESTDIR=$startdir/pkg \

	set +e
}