aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sedutil/APKBUILD
blob: 05a3bc44489d36377caaa8d5594bba0b3ed634c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname="sedutil"
pkgver="1.15.1"
pkgrel=0
pkgdesc="DTA sedutil Self encrypting drive software"
url="https://github.com/Drive-Trust-Alliance/sedutil"
arch="all"
license="GPL-3.0-or-later"
options="!check" # requires hardware
makedepends="automake autoconf libtool linux-headers"
subpackages="$pkgname-doc"
source="sedutil-$pkgver.tar.gz::https://github.com/Drive-Trust-Alliance/sedutil/archive/$pkgver.tar.gz"
builddir="$srcdir/sedutil-$pkgver"

prepare() {
	default_prepare
	cat > linux/GitVersion.sh <<EOF
#!/bin/sh
echo "#define GIT_VERSION \"$pkgver\""
EOF
	autoreconf -vi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="9708ef307b457fad2f45735b044685ac6731c353af428c49ff0e312190f3bdc521bcfa71a9e1239d9ffe637d18293a99b09b7e001df96494cdce53f5442750f1  sedutil-1.15.1.tar.gz"