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

27 lines
816 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"
2023-03-14 21:59:38 +00:00
PKG_VERSION="01cca2e77f9bf9f1432be04f876f287eb78297fe"
2022-02-05 14:23:32 +00:00
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_DEPENDS_TARGET="toolchain SDL2"
2023-01-14 15:50:51 +00:00
PKG_SITE="https://github.com/gabomdq/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
2023-04-27 05:12:24 +00:00
if [ -f "${PKG_DIR}/sources/gamecontrollerdb.txt" ]
2022-02-12 14:27:22 +00:00
then
2023-04-27 05:12:24 +00:00
cat ${PKG_DIR}/sources/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
}