installer: rework buildscript

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-17 20:43:36 +02:00
parent 63ed79d0a0
commit 38b0e34158

View File

@ -39,16 +39,16 @@ if [ "$TARGET_ARCH" = "i386" -o "$TARGET_ARCH" = "x86_64" ]; then
PKG_DEPENDS="$PKG_DEPENDS flashrom" PKG_DEPENDS="$PKG_DEPENDS flashrom"
fi fi
pre_build_target() {
mkdir -p $ROOT/$BUILD/$PKG_NAME-$PKG_VERSION
PKG_BUILD="$ROOT/$BUILD/$PKG_NAME-$PKG_VERSION"
}
make_target() { make_target() {
: # nothing to make here : # nothing to make here
} }
makeinstall_target() { makeinstall_target() {
: # nothing to install here
}
post_install() {
mkdir -p $INSTALL/usr/bin mkdir -p $INSTALL/usr/bin
cp $PKG_DIR/scripts/installer $INSTALL/usr/bin cp $PKG_DIR/scripts/installer $INSTALL/usr/bin
@ -58,9 +58,6 @@ makeinstall_target() {
else else
cp $PKG_DIR/config/installer.conf $INSTALL/etc cp $PKG_DIR/config/installer.conf $INSTALL/etc
fi fi
}
post_install() {
enable_service installer.service enable_service installer.service
} }