30 lines
744 B
BlitzBasic
30 lines
744 B
BlitzBasic
SUMMARY = "Helium package repositories"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
SRC_URI = " \
|
|
file://helium-main.conf \
|
|
file://helium-devices.conf \
|
|
file://helium-extra.conf \
|
|
"
|
|
CONF_FILES = "helium-main.conf helium-devices.conf helium-extra.conf"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
do_configure() {
|
|
for conf in ${CONF_FILES}; do
|
|
cat ${WORKDIR}/$conf | \
|
|
sed -e "s/@DISTRO@/${DISTRO}/g" | \
|
|
sed -e "s/@CODENAME@/${DISTRO_CODENAME}/g" | \
|
|
sed -e "s/@CPU@/${TUNE_PKGARCH}/g" | \
|
|
sed -e "s/@MACHINE@/${MACHINE_ARCH}/g" \
|
|
> ${B}/$conf
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
for conf in ${CONF_FILES}; do
|
|
install -D -m 0644 ${B}/$conf ${D}${sysconfdir}/opkg/$conf
|
|
done
|
|
}
|