APP=cryptsetup
VERSION=1.7.4
BUILD=1sml
HOMEPAGE="https://github.com/mbroz/cryptsetup"
DOWNLOAD="https://github.com/mbroz/cryptsetup/archive/refs/tags/v1_7_4.tar.gz"
DESC="Utility for setting up encrypted filesystems"
REQUIRES="popt util-linux libgpg-error libgcrypt lvm"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --libdir=/lib \
    --sysconfdir=/etc

  make
  make install DESTDIR=$PKG

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
b4fc1a2be208ebc795057964fd3d1d3756af9b07f0ae33bdd185ff1415961be70f380b0d98583a25e044dee3605997b96cdc3ea3e34ed3a4cb14cf1f48f65446  cryptsetup-1.7.4.tar.lz
"
