Files
Arch-R/packages/sysutils/libusb-compat/package.mk

27 lines
1.0 KiB
Makefile
Raw Normal View History

2018-07-16 20:45:36 +02:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libusb-compat"
PKG_VERSION="0.1.8"
2023-10-14 09:30:46 +02:00
PKG_SHA256="b692dcf674c070c8c0bee3c8230ce4ee5903f926d77dc8b968a4dd1b70f9b05c"
PKG_LICENSE="GPL"
2020-12-31 11:26:18 +00:00
PKG_SITE="https://github.com/libusb/libusb-compat-0.1"
PKG_URL="https://github.com/libusb/libusb-compat-0.1/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_TARGET="toolchain libusb"
2018-10-22 15:06:12 +02:00
PKG_LONGDESC="The libusb project's aim is to create a Library for use by user level applications to USB devices."
PKG_TOOLCHAIN="autotools"
2022-01-07 14:16:31 +00:00
PKG_CONFIGURE_OPTS_TARGET="--disable-log \
--disable-debug-log \
--disable-examples-build"
post_configure_target() {
libtool_remove_rpath libtool
}
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/libusb-config
}