description="Cryptsetup is used to set up transparent encryption of block devices using the kernel crypto API."
url="https://www.kernel.org/pub/linux/utils/cryptsetup"

packager="tnut <tnut@nutyx.org>"
contributors="Rems"

makedepends=(lvm2 popt json-c)

name=cryptsetup
version=2.3.3

source=(https://www.kernel.org/pub/linux/utils/cryptsetup/v${version:0:3}/$name-$version.tar.xz)
build() {
cd ${name}-$version
./configure --prefix=/usr \
            --disable-static

make
make DESTDIR=$PKG install

# Obsolet lib
rm $PKG/usr/lib/libcryptsetup.la
}
