2022-08-22 23:58:24 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="splash"
|
2023-05-01 21:16:24 +00:00
|
|
|
PKG_VERSION=""
|
2022-08-22 23:58:24 +00:00
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="apache2"
|
|
|
|
PKG_SITE=""
|
|
|
|
PKG_URL=""
|
2022-08-23 11:23:08 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain imagemagick"
|
2022-08-22 23:58:24 +00:00
|
|
|
PKG_LONGDESC="Boot splash screens"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
2022-08-23 11:23:08 +00:00
|
|
|
make_init() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2022-08-22 23:58:24 +00:00
|
|
|
make_target() {
|
2022-08-23 11:23:08 +00:00
|
|
|
:
|
2022-08-22 23:58:24 +00:00
|
|
|
}
|
|
|
|
|
2022-08-23 11:23:08 +00:00
|
|
|
mksplash() {
|
2022-08-23 21:02:26 +00:00
|
|
|
SPLASH="${ROOT}/distributions/${DISTRO}/splash/splash.png"
|
2023-04-23 22:29:32 +00:00
|
|
|
cp ${SPLASH} ${1}
|
|
|
|
convert ${SPLASH} -rotate 90 -quality 100 -background black -gravity center ${1}/splash_90.png
|
|
|
|
convert ${SPLASH} -rotate 180 -quality 100 -background black -gravity center ${1}/splash_180.png
|
|
|
|
convert ${SPLASH} -rotate 270 -quality 100 -background black -gravity center ${1}/splash_270.png
|
2022-08-23 11:23:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_init() {
|
2022-08-22 23:58:24 +00:00
|
|
|
mkdir -p ${INSTALL}/splash
|
2022-08-23 11:23:08 +00:00
|
|
|
mksplash ${INSTALL}/splash
|
2022-08-22 23:58:24 +00:00
|
|
|
}
|
|
|
|
|
2022-08-23 11:23:08 +00:00
|
|
|
makeinstall_target() {
|
2022-08-22 23:58:24 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/config/splash
|
2022-08-23 11:23:08 +00:00
|
|
|
mksplash ${INSTALL}/usr/config/splash
|
2022-08-22 23:58:24 +00:00
|
|
|
}
|