distribution/packages/tools/scrapers/Skyscraper/package.mk

43 lines
1.7 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2018-present CoreELEC (https://coreelec.org)
PKG_NAME="Skyscraper"
2023-03-14 21:59:38 +00:00
PKG_VERSION="19832c4cc13d396a3089d09da773e79d5488217a"
2022-02-05 14:23:32 +00:00
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/muldjord/skyscraper"
2022-04-08 23:33:29 +00:00
PKG_URL="${PKG_SITE}.git"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_TARGET="toolchain qt-everywhere p7zip:host"
PKG_PRIORITY="optional"
PKG_SECTION="emuelec"
PKG_SHORTDESC="Powerful and versatile game scraper written in c++ "
PKG_TOOLCHAIN="make"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
GET_HANDLER_SUPPORT="git"
PKG_TOOLCHAIN="make"
configure_target() {
# Fix install paths / 5schatten
2022-04-08 23:33:29 +00:00
sed -e "s#target.path=/usr/local/bin#target.path=${INSTALL}/usr/bin#" -i ${PKG_BUILD}/skyscraper.pro
sed -e "s#examples.path=/usr/local/etc/skyscraper#examples.path=${INSTALL}/usr/share/skyscraper#" -i ${PKG_BUILD}/skyscraper.pro
sed -e "s#cacheexamples.path=/usr/local/etc/skyscraper/cache#cacheexamples.path=${INSTALL}/usr/share/skyscraper/cache#" -i ${PKG_BUILD}/skyscraper.pro
sed -e "s#impexamples.path=/usr/local/etc/skyscraper/import#impexamples.path=${INSTALL}/usr/share/skyscraper/import#" -i ${PKG_BUILD}/skyscraper.pro
sed -e "s#resexamples.path=/usr/local/etc/skyscraper/resources#resexamples.path=${INSTALL}/usr/share/skyscraper/resources#" -i ${PKG_BUILD}/skyscraper.pro
2022-02-05 14:23:32 +00:00
rm -rf .qmake.stash
QMAKEPATH=$(find $BUILD/qt-everywhere*/qtbase/bin -maxdepth 1 -name qmake)
2022-04-08 23:33:29 +00:00
$QMAKEPATH ${PKG_BUILD}/skyscraper.pro
2022-02-05 14:23:32 +00:00
}
post_makeinstall_target() {
# Install scripts
2022-04-08 23:33:29 +00:00
cp ${PKG_DIR}/scripts/* ${INSTALL}/usr/bin/
2022-02-05 14:23:32 +00:00
# Install config
2022-04-08 23:33:29 +00:00
mkdir -p ${INSTALL}/usr/config/skyscraper
cp ${PKG_DIR}/config/* ${INSTALL}/usr/config/skyscraper/
2022-02-05 14:23:32 +00:00
}