# Description: user-friendly dm-crypt/LUKS interface
# URL: http://code.google.com/p/cryptsetup/
# Maintainer:  Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: libdevmapper,  util-linux, libgcrypt, popt

name=cryptsetup
version=1.6.8
release=1
source=(https://kernel.org/pub/linux/utils/$name/v1.6/$name-$version.tar.xz)

build() {
    cd $name-$version

    LIBS="-lpthread" ./configure \
      --prefix=/usr \
      --mandir=/usr/man \
      --disable-nls \
      --enable-static-cryptsetup
    make
    make DESTDIR=$PKG install

    install -d $PKG/sbin
    mv $PKG/{usr/sbin,sbin}/cryptsetup.static
}
