distribution/packages/games/tools/gamecontrollerdb/package.mk

27 lines
825 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
PKG_NAME="gamecontrollerdb"
2022-12-22 22:02:45 +00:00
PKG_VERSION="b681748d6dbf2f735f94bd798b8e42042f211f56"
2022-02-05 14:23:32 +00:00
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_DEPENDS_TARGET="toolchain SDL2"
PKG_SITE="https://github.com/JustEnoughLinuxOS/SDL_GameControllerDB"
2022-05-27 22:33:28 +00:00
PKG_URL="${PKG_SITE}.git"
2022-02-05 14:23:32 +00:00
PKG_SECTION="tools"
PKG_SHORTDESC="SDL Game Controller DB"
PKG_TOOLCHAIN="manual"
make_target() {
2022-05-27 22:33:28 +00:00
:
2022-02-05 14:23:32 +00:00
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/config/SDL-GameControllerDB
2022-02-12 14:27:22 +00:00
if [ -d "${PKG_DIR}/sources/${DEVICE}" ]
then
cat ${PKG_DIR}/sources/${DEVICE}/gamecontrollerdb.txt >${INSTALL}/usr/config/SDL-GameControllerDB/gamecontrollerdb.txt
2022-02-05 14:23:32 +00:00
fi
2022-05-27 22:33:28 +00:00
cat ${PKG_BUILD}/gamecontrollerdb.txt >>${INSTALL}/usr/config/SDL-GameControllerDB/gamecontrollerdb.txt
2022-02-05 14:23:32 +00:00
}