mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-02 10:41:46 -04:00
25 lines
822 B
Makefile
25 lines
822 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (C) 2023-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="dool"
|
|
PKG_VERSION="1.2.0"
|
|
PKG_SHA256="a626ec796a2508443625314e464adec885cb22543157794a6255570b19f68a7d"
|
|
PKG_LICENSE="GPL-3.0-or-later"
|
|
PKG_SITE="https://github.com/scottchiefbaker/dool"
|
|
PKG_URL="https://github.com/scottchiefbaker/dool/archive/v${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain Python3"
|
|
PKG_LONGDESC="Python3 compatible clone of dstat"
|
|
PKG_TOOLCHAIN="manual"
|
|
PKG_BUILD_FLAGS="-sysroot"
|
|
|
|
post_unpack() {
|
|
rm ${PKG_BUILD}/Makefile
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp -p dool ${INSTALL}/usr/bin
|
|
cp -pr plugins ${INSTALL}/usr/bin
|
|
printf "#!/bin/sh\n\necho \"\${0} has been replaced by dool\"" > ${INSTALL}/usr/bin/dstat
|
|
chmod 755 ${INSTALL}/usr/bin/dstat
|
|
}
|