#!/bin/sh
#
# Copyright 2026 Sasa Ostrouska <saxa@droplinegnome.org>
# Available under the terms of the GNU GPL.
#

NAME="hidapi"
VERSION="0.15.0"
REVISION="1"

PKG_SOURCEURL='https://github.com/libusb/${NAME}/archive/refs/tags/${NAME}-${VERSION}.tar.gz'

. $DLG_ROOT/etc/config
. $DLG_ROOT/lib/dl-base

cflags
cxxflags
prepare
analyzesource
configure force-cmake
make
makeinstall
tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup
