Permalink
Newer
100755
97 lines (74 sloc)
2.87 KB
5
## this file was created by bee init and should be executed to build a
6
## bee-package. (Additional hints are located at the end of this file.)
7
8
###############################################################################
9
## The source URL(s) define the location of the sources that will be
10
## downloaded. Version variables may be used to simplify reuse of this bee-file.
11
12
SRCURL[0]="http://ftp.gnu.org/gnu/findutils/findutils-${PKGVERSION}.tar.gz"
13
14
###############################################################################
15
## Add URLs/pathes to patch files to the PATCHURL array.
16
## The sources will be patched in the order of the array.
17
18
# PATCHURL+=()
19
20
###############################################################################
21
## Add filename patterns to the EXCLUDE array of files that should not
22
## be added to you package but may be present in the image directory.
23
24
# EXCLUDE+=()
25
26
###############################################################################
27
## Uncomment the next statement, if the software may not be able to be build
28
## outside the source directory and need to be build inside the source
29
## directory.
30
31
# build_in_sourcedir
32
33
###############################################################################
34
## bee cannot detect buildtypes specified in subdirectories.
35
## Sometimes packages "hide" the real sources in a subdirectory named
36
## 'src' or 'cmake' or ..
37
## use 'sourcesubdir_append' to specify this directory if known.
38
39
# sourcesubdir_append src
40
41
42
###############################################################################
43
## Change the default (auto-detected) steps to
44
## extract, patch, configure/setup, build and install the software.
45
## Make sure the mee_install function does install everything to the
46
## image directory "${D}"
47
48
#mee_extract() {
49
# bee_extract "${@}"
50
#}
51
52
#mee_patch() {
53
# bee_patch "${@}"
54
#}
55
56
mee_configure_pre() {
57
sed -i -e '/LOCATE_DB\s*=/ s|/locatedb|/lib/locate/locatedb|' ${S}/locate/Makefile.in
58
}
59
62
#}
63
64
#mee_build() {
65
# bee_build
66
#}
67
68
#mee_install() {
69
# bee_install
70
#}
71
## by default this may be 'make install DESTDIR="${D}"'
72
73
mee_install_post() {
74
# http://www.linuxfromscratch.org/lfs/view/development/chapter06/findutils.html
75
76
mkdir ${D}/bin
77
ln -s /usr/bin/find ${D}/bin/find
78
sed -i 's|find:=${BINDIR}|find:=/bin|' ${D}/usr/bin/updatedb
79
}
80
81
###############################################################################
82
##
83
## Additional hints:
84
##
85
## The name of this bee-file should follow the following naming convention:
86
## pkgname-pkgversion-pkgrevision.bee
87
##
88
## You may remove all comments as long as SRCURL[0]="" is set.
89
##
90
## Everything in this file will be executed in a bash environment.
91
##
92
## Build the package by executing
93
## './pkg-version-N.bee' or
94
## 'beesh ./pkg-version-N.bee'
95
##
96
## see http://beezinga.org/
97
##