main/cryptsetup: Add tests

This commit is contained in:
A. Wilcox 2018-02-21 23:07:04 -06:00 committed by William Pitcock
parent c0b2d6f20b
commit b7ff6fe70c

View File

@ -6,12 +6,14 @@ pkgrel=0
pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi"
url="https://gitlab.com/cryptsetup/cryptsetup"
arch="all"
options="!checkroot"
license="GPL-2.0-or-later"
depends=""
makedepends_build=""
makedepends_host="lvm2-dev libressl-dev popt-dev util-linux-dev
json-c-dev argon2-dev"
makedepends="$makedepends_build $makedepends_host"
checkdepends="device-mapper sharutils which"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://www.kernel.org/pub/linux/utils/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.gz
flush-stdout.patch
@ -34,6 +36,11 @@ build() {
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR=$pkgdir install