blob: fc0eb9663d186fe7ac6befa0bd5522731f5c3243 (
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
|
# Maintainer: Shohei Maruyama <cheat.sc.linux@outlook.com>
pkgname=tee-supplicant
pkgver=3.19.0
pkgrel=3
pkgdesc='Normal world client side of the TEE'
arch=('x86_64' 'aarch64')
url='https://github.com/OP-TEE/optee_client'
license=('BSD')
depends=('glibc' 'util-linux-libs')
makedepends=('cmake' 'ninja')
source=("git+https://github.com/OP-TEE/optee_client.git#tag=${pkgver}")
sha256sums=('SKIP')
build() {
cmake -B build -S optee_client -G Ninja \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_BUILD_TYPE='None' \
-DCFG_TEE_CLIENT_LOG_FILE='/var/log/tee/teec.log' \
-DBUILD_SHARED_LIBS=ON
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
# mv tee-supplicant into /usr/bin
install -dm755 ${pkgdir}/usr/bin
mv ${pkgdir}/usr/sbin/tee-supplicant ${pkgdir}/usr/bin
rm -rf ${pkgdir}/usr/sbin
# install license
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 optee_client/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/
}
|