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="spiky <spiky@nutyx.org>"
contributors="Rems,Tnut"

makedepends=(util-linux lvm2 popt json-c libssh asciidoctor)

name=cryptsetup
version=2.6.0

source=(https://www.kernel.org/pub/linux/utils/cryptsetup/v2.6/$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
}
