Browse Source
Merge pull request #1 from lat9nq/hidapi
hidapi: Add 0.10.1 (trunk) repo and binary
__refs_pull_2_head
lat9nq
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
60 additions and
0 deletions
-
.gitmodules
-
hidapi/build_hidapi.sh
-
hidapi/hidapi
-
BIN
hidapi/hidapi_0_10_1.tar.xz
-
hidapi/start_build.sh
|
|
@ -0,0 +1,3 @@ |
|
|
|
|
|
[submodule "hidapi/hidapi"] |
|
|
|
|
|
path = hidapi/hidapi |
|
|
|
|
|
url = https://github.com/libusb/hidapi.git |
|
|
@ -0,0 +1,37 @@ |
|
|
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
# This script is meant to make it easy to rebuild packages using the |
|
|
|
|
|
# linux-fresh yuzu-emu container. |
|
|
|
|
|
|
|
|
|
|
|
# Run this from within the source directory |
|
|
|
|
|
|
|
|
|
|
|
THIS=$(readlink -e $0) |
|
|
|
|
|
USER_ID=${1} |
|
|
|
|
|
GROUP_ID=${2} |
|
|
|
|
|
VERSION=$(cat VERSION | sed 's/\./_/g') |
|
|
|
|
|
BASE_NAME=$(readlink -e $(pwd) | sed 's/.*\///g') |
|
|
|
|
|
ARCHIVE_NAME=${BASE_NAME}_${VERSION}.tar.xz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
./bootstrap |
|
|
|
|
|
|
|
|
|
|
|
mkdir build || true |
|
|
|
|
|
cd build |
|
|
|
|
|
|
|
|
|
|
|
../configure |
|
|
|
|
|
make -j$(nproc) |
|
|
|
|
|
make install DESTDIR=$(pwd)/out |
|
|
|
|
|
|
|
|
|
|
|
cd .. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -pv ${BASE_NAME}/ |
|
|
|
|
|
mv -v build/out/usr/local/* ${BASE_NAME}/ |
|
|
|
|
|
cp -v ${THIS} ${BASE_NAME}/ |
|
|
|
|
|
|
|
|
|
|
|
tar cv ${BASE_NAME} | xz -c > ${ARCHIVE_NAME} |
|
|
|
|
|
|
|
|
|
|
|
if [ -e ${ARCHIVE_NAME} ]; then |
|
|
|
|
|
echo "hidapi package can be found at $(readlink -e ${ARCHIVE_NAME})" |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
@ -0,0 +1 @@ |
|
|
|
|
|
Subproject commit 6f0056e1ce99ddfc82beb7f094723d8afe8b5098 |
|
|
@ -0,0 +1,19 @@ |
|
|
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
# Kicks off the build script using the linux-fresh build container. |
|
|
|
|
|
|
|
|
|
|
|
if [ "$#" -ne 2 ]; then |
|
|
|
|
|
echo "usage: $0 <Source directory> <Build script>" |
|
|
|
|
|
exit |
|
|
|
|
|
fi |
|
|
|
|
|
UID=`id -u` |
|
|
|
|
|
GID=`id -g` |
|
|
|
|
|
|
|
|
|
|
|
SRC_DIR=$(readlink -e $1) |
|
|
|
|
|
SRC_DIR_BASENAME=$(basename ${SRC_DIR}) |
|
|
|
|
|
SCRIPT=$(readlink -e $2) |
|
|
|
|
|
SCRIPT_BASENAME=$(basename ${SCRIPT}) |
|
|
|
|
|
|
|
|
|
|
|
cp ${SCRIPT} ${SRC_DIR} |
|
|
|
|
|
docker run -v ${SRC_DIR}:/${SRC_DIR_BASENAME} -w /${SRC_DIR_BASENAME} -u root -t yuzuemu/build-environments:linux-fresh /bin/bash /${SRC_DIR_BASENAME}/${SCRIPT_BASENAME} ${UID} ${GID} |
|
|
|
|
|
|