smlinux/base/cryptsetup/cryptsetup.SMBuild

37 lines
865 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=cryptsetup
version=1.7.4
mversion="$(echo $version | sed 's@.@_@')"
build=1sml
homepage="https://github.com/mbroz/cryptsetup"
download="https://github.com/mbroz/cryptsetup/archive/refs/tags/v$mversion.tar.gz"
desc="Utility for setting up encrypted filesystems"
requires="popt util-linux libgpg-error libgcrypt lvm"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./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
"