distribution/packages/devel/hwdata/package.mk
sydarn ab11cf234a Sway build fixes
libxcb-wm is required for xwayland, I think I made some progress
building it... but it's not there yet. So xwayland is disabled
2024-02-01 13:54:27 +01:00

20 lines
763 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="hwdata"
PKG_VERSION="0.378"
PKG_SHA256="098ea8db12a50290f4b23f7f521edf9c5bab25935d2740de17e4a487110b40c8"
PKG_LICENSE="GPL-2.0"
PKG_SITE="https://github.com/vcrhonek/hwdata"
PKG_URL="https://github.com/vcrhonek/hwdata/archive/refs/tags/v${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="hwdata contains various hardware identification and configuration data, such as the pci.ids and usb.ids databases"
pre_configure_target() {
# hwdata fails to build in subdirs
cd ${PKG_BUILD}
rm -rf .${TARGET_NAME}
sed -i "s&@prefix@|&@prefix@|${PKG_INSTALL}&" Makefile
sed -i "s&prefix=@prefix@&prefix=/usr&" hwdata.pc.in
}