summaryrefslogtreecommitdiff
path: root/packages/meta/package-index.bb
blob: b28234f17c6b9f9f2f7767aa1ed00c1610849740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
DESCRIPTION = "Rebuild the package index"
LICENSE = "MIT"
PR = "r2"

DEPENDS = "ipkg-utils-native"

INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = "1"
PACKAGES = ""

do_fetch() {
}
do_unpack() {
}
do_patch() {
}
do_configure() {
}
do_compile() {
}
do_install() {
}
do_stage() {
}

do_build[nostamp] = "1"
do_build[dirs] = "${DEPLOY_DIR_IPK}"
do_build() {
	set -ex
	touch Packages
	ipkg-make-index -r Packages -p Packages -l Packages.filelist -m .

	ipkgarchs="${PACKAGE_ARCHS}"

        for arch in $ipkgarchs; do
            if [ -e ${DEPLOY_DIR_IPK}/$arch/ ] ; then
                 touch ${DEPLOY_DIR_IPK}/$arch/Packages
                 ipkg-make-index -r ${DEPLOY_DIR_IPK}/$arch/Packages -p ${DEPLOY_DIR_IPK}/$arch/Packages -l ${DEPLOY_DIR_IPK}/$arch/Packages.filelist -m ${DEPLOY_DIR_IPK}/$arch/
            fi
        done

        set +ex
}