diff --git a/common/shlibs b/common/shlibs index 481969464a9..ca5ca04c733 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2235,3 +2235,5 @@ libboinc_api.so.7 boinc-nox-7.6.2_1 libboinc_graphics2.so.7 boinc-nox-7.6.2_1 libbson-1.0.so.0 libbson-1.2.0_1 libsynfig.so.0 synfig-1.0.1_1 +libhidapi-hidraw.so.0 hidapi-0.8.0rc1_1 +libhidapi-libusb.so.0 hidapi-0.8.0rc1_1 diff --git a/srcpkgs/hidapi-devel b/srcpkgs/hidapi-devel new file mode 120000 index 00000000000..ece54bdf716 --- /dev/null +++ b/srcpkgs/hidapi-devel @@ -0,0 +1 @@ +hidapi \ No newline at end of file diff --git a/srcpkgs/hidapi/template b/srcpkgs/hidapi/template new file mode 100644 index 00000000000..fcd4ad1bc79 --- /dev/null +++ b/srcpkgs/hidapi/template @@ -0,0 +1,35 @@ +# Template file for 'hidapi' +pkgname=hidapi +_distver=0.8.0 +_patchver=rc1 +version=${_distver}${_patchver} +revision=1 +wrksrc="${pkgname}-${pkgname}-${_distver}-${_patchver}" +build_style=gnu-configure +hostmakedepends="automake libtool pkg-config" +makedepends="libudev-devel libusb-devel" +short_desc="A Simple library for communicating with USB and Bluetooth HID devices" +maintainer="Juan RP " +license="3-clause-BSD" +homepage="http://www.signal11.us/oss/hidapi/" +distfiles="https://github.com/signal11/hidapi/archive/hidapi-${_distver}-${_patchver}.tar.gz" +checksum=3c147200bf48a04c1e927cd81589c5ddceff61e6dac137a605f6ac9793f4af61 + +pre_configure() { + NOCONFIGURE=1 ./bootstrap +} +post_install() { + rm -r ${DESTDIR}/usr/share + vlicense LICENSE-bsd.txt LICENSE +} + +hidapi-devel_package() { + short_desc+=" - development files" + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/lib/pkgconfig + } +}