mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-22 02:16:19 +00:00
bd3b212848
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
29 lines
925 B
Makefile
29 lines
925 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
PKG_NAME="installer"
|
|
PKG_VERSION="1"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="http://libreelec.tv/"
|
|
PKG_URL=""
|
|
PKG_DEPENDS_TARGET="toolchain busybox newt parted e2fsprogs syslinux grub"
|
|
PKG_LONGDESC="LibreELEC.tv Install manager to install the system on any disk"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
post_install() {
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp ${PKG_DIR}/scripts/installer ${INSTALL}/usr/bin
|
|
sed -e "s/@DISTRONAME@/${DISTRONAME}/g" \
|
|
-i ${INSTALL}/usr/bin/installer
|
|
|
|
mkdir -p ${INSTALL}/etc
|
|
find_file_path config/installer.conf
|
|
cp ${FOUND_PATH} ${INSTALL}/etc
|
|
sed -e "s/@SYSTEM_SIZE@/${SYSTEM_SIZE}/g" \
|
|
-e "s/@SYSTEM_PART_START@/${SYSTEM_PART_START}/g" \
|
|
-e "s/@SYSLINUX_PARAMETERS@/${SYSLINUX_PARAMETERS}/g" \
|
|
-i ${INSTALL}/etc/installer.conf
|
|
|
|
enable_service installer.service
|
|
}
|