From c42dc07f0be9ecd062518a17e6492957b2ccee47 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sun, 17 Feb 2019 06:08:52 +0300 Subject: optdepends --- PKGBUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 77004d39..c0fc79de 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -36,6 +36,10 @@ depends=( nginx-mainline openssl ) +optdepends=( + dkms + tc358743-dkms +) makedepends=(python-setuptools) source=("$url/archive/v$pkgver.tar.gz") md5sums=(SKIP) @@ -100,10 +104,7 @@ for _platform in $_PLATFORMS; do ln -sf \"$_cfgdir/os/modules-load/$_platform.conf\" \"$pkgdir/etc/modules-load.d/pikvm.conf\" ln -sf \"$_cfgdir/kvmd/main/$_platform.yaml\" \"$pkgdir/etc/kvmd/main.yaml\" - if [ $_platform == v1-hdmi ]; then - depends+=(dkms tc358743-dkms) - ln -sf \"$_cfgdir/kvmd/tc358743-edid.hex\" \"$pkgdir/etc/kvmd/tc358743-edid.hex\" - fi + [ $_platform == v1-hdmi ] && ln -sf \"$_cfgdir/kvmd/tc358743-edid.hex\" \"$pkgdir/etc/kvmd/tc358743-edid.hex\" }" done done -- cgit v1.2.3