2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2022-12-22 22:02:45 +00:00
|
|
|
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
|
|
|
|
PKG_NAME="control-gen"
|
2023-10-17 10:54:13 +00:00
|
|
|
PKG_VERSION="95cb4d4f28e1743c6a7f3c0266049f68b2134b60"
|
2022-12-22 22:02:45 +00:00
|
|
|
PKG_ARCH="any"
|
2022-12-25 00:54:59 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
2022-12-22 22:02:45 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_SECTION="tools"
|
|
|
|
PKG_SHORTDESC="Generates control.txt for gptokeyb"
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
|
|
|
|
pre_make_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
cp -f ${PKG_DIR}/Makefile ${PKG_BUILD}
|
|
|
|
cp -f ${PKG_DIR}/control-gen.cpp ${PKG_BUILD}
|
2022-12-22 22:02:45 +00:00
|
|
|
CFLAGS+=" -I$(get_build_dir SDL2)/include -D_REENTRANT"
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_BUILD}/control-gen ${INSTALL}/usr/bin
|
2022-12-22 22:02:45 +00:00
|
|
|
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin
|
|
|
|
chmod 0755 ${INSTALL}/usr/bin/*
|
|
|
|
}
|