summaryrefslogtreecommitdiff
path: root/recipes-core/file-magic-db-images/file-magic-db-images_0.1.bb
blob: 43d30520167c6c1f5e07e180c87910d948605553 (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
DESCRIPTION = "Stripped MIME detection database for file(1) with definition of images"
HOMEPAGE = "http://www.darwinsys.com/file/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03188"
DEPENDS = "file-native"
FILES_${PN} = "${datadir}/misc/magic-images.mgc"

PV = "0.1"
PR = "r5"

SRC_URI = "file://COPYING \
           file://Magdir/images \
           file://Magdir/jpeg \
           file://Magdir/msdos \
           file://Magdir/sgml"

S = "${WORKDIR}"

do_compile() {
  ${STAGING_BINDIR_NATIVE}/file-native/file -v
  ${STAGING_BINDIR_NATIVE}/file-native/file -C -m ${S}/Magdir
}

do_install() {
  install -d ${D}/${datadir}/misc/
  install -m 0644 ${WORKDIR}/Magdir.mgc ${D}/${datadir}/misc/magic-images.mgc
}