-
Notifications
You must be signed in to change notification settings - Fork 3
/
APKBUILD
44 lines (39 loc) · 1.33 KB
/
APKBUILD
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
42
43
44
# Contributor: Remko Tronçon <r@mko.re>
# Maintainer: Remko Tronçon <r@mko.re>
pkgname=age-plugin-se
pkgver=0.1.3
pkgrel=0
pkgdesc="age plugin for Apple's Secure Enclave"
url="https://github.com/remko/age-plugin-se"
arch="aarch64 x86_64"
license="MIT"
depends=""
depends_doc=""
makedepends="make debootstrap scdoc"
checkdepends=""
options="!check !tracedeps" # !check because the binary only works if the dynamic linker is at the correct absolute path
install=""
subpackages="$pkgname-doc"
source="
${pkgname}-${pkgver}.tar.gz::https://github.com/remko/age-plugin-se/archive/refs/tags/v${pkgver}.tar.gz
chroot-build.sh"
builddir="$srcdir/age-plugin-se-${pkgver}"
repo="main"
build() {
cd $builddir
doas env PREFIX=/usr $srcdir/chroot-build.sh || return 1
doas chown -R $USER.$USER $builddir/.build || return 1
make .build/age-plugin-se.1 || return 1
}
check() {
:
}
package() {
install -d "$pkgdir"
cp -r $builddir/.build/chroot-build/* "$pkgdir" || return 1
make PREFIX=/usr DESTDIR="$pkgdir" install-doc || return 1
}
sha512sums="
06c28a5b5ab0d876bd67465adc6192c3a8b5920e136b9c67cab6733bb2ea565385ad8eaf852418c0c1d27e55ce39cd2e3b471a9f62bec0a18b4fc1b7d860bfe7 age-plugin-se-0.1.3.tar.gz
859a881dd7dca757155dfa62362bf0977bea2a0e4eefb2faeebce8f5ff72c2450e55a90246c80552b14b04639358de75e088985b40b3c5218751bb00df74e7a1 chroot-build.sh
"