Subject: [PATCH] main/libusb-compat: depend on libusb

From: Wolf <[email-masked]>
Date: Sun, 28 Nov 2021 00:10:11 +0100

With upgrade to 0.1.7, dependency on libusb is no longer auto-detected
(since libusb-compat is using dlopen) breaking other applications unless
libusb is installed manually.

This commit add manual dependency to resolve the issue.
---
 main/libusb-compat/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main/libusb-compat/APKBUILD b/main/libusb-compat/APKBUILD
index aea6c17ec5..a7d3ddec45 100644
--- a/main/libusb-compat/APKBUILD
+++ b/main/libusb-compat/APKBUILD
@@ -1,12 +1,13 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=libusb-compat
 pkgver=0.1.7
-pkgrel=0
+pkgrel=1
 pkgdesc="Compatility for older libusb"
 url="https://libusb.info/"
 arch="all"
 license="LGPL-2.1-or-later"
 subpackages="$pkgname-dev"
+depends="libusb"
 makedepends="libusb-dev"
 source="https://github.com/libusb/libusb-compat-0.1/releases/download/v$pkgver/libusb-compat-$pkgver.tar.gz
 	fix-headers.patch"
-- 
2.33.1