-
Notifications
You must be signed in to change notification settings - Fork 0
Permalink
bee-files/haskell-platform-minimal-binary.be0
Newer
100755
112 lines (86 sloc)
3.58 KB
1
#!/usr/bin/env beesh
2
3
# BEE_VERSION haskell-platform-minimal-binary-8.0.1-0
4
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]="https://haskell.org/platform/download/$PKGVERSION/haskell-platform-${PKGVERSION}-unknown-posix--minimal-x86_64.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 built
28
## outside the source directory and needs to be built 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
BEE_EXTRACT_STRIP=0
49
50
#mee_extract() {
51
# bee_extract "${@}"
52
#}
53
54
#mee_patch() {
55
# bee_patch "${@}"
56
#}
57
58
#mee_configure() {
59
# bee_configure
60
#}
61
62
#mee_build() {
63
# bee_build
64
#}
65
66
mee_install() {
67
start_cmd cd "$D"
68
start_cmd tar -x -f "$S/hp-usr-local.tar.gz" --no-same-owner
69
70
mkdir -p "$D$BINDIR"
71
cd "$D/usr/local/haskell/ghc-$PKGVERSION-x86_64/bin"
72
for f in *; do
73
start_cmd ln -s "/usr/local/haskell/ghc-$PKGVERSION-x86_64/bin/$f" "$D$BINDIR/"
74
done
75
76
mkdir -p "$D$MANDIR/man1"
77
cd "$D/usr/local/haskell/ghc-$PKGVERSION-x86_64/share/man/man1"
78
for f in *; do
79
start_cmd ln -s "/usr/local/haskell/ghc-$PKGVERSION-x86_64/share/man/man1/$f" "$D$MANDIR/man1/"
80
done
81
82
mkdir -p "$D$DATAROOTIR/doc/"
83
start_cmd ln -s "/usr/local/haskell/ghc-$PKGVERSION-x86_64/share/doc/ghc" "$D$DATAROOTIR/doc/"
84
85
for conf in "$D/usr/local/haskell/ghc-$PKGVERSION-x86_64/etc/registrations/"*; do
86
start_cmd \
87
$D/usr/local/haskell/ghc-$PKGVERSION-x86_64/bin/ghc-pkg \
88
--package-db $D/usr/local/haskell/ghc-$PKGVERSION-x86_64/lib/ghc-8.0.1/package.conf.d \
89
register \
90
$conf
91
done
92
93
}
94
## by default this may be 'make install DESTDIR="${D}"'
95
96
###############################################################################
97
##
98
## Additional hints:
99
##
100
## The name of this bee-file should follow the following naming convention:
101
## pkgname-pkgversion-pkgrevision.bee
102
##
103
## You may remove all comments as long as SRCURL[${PKGVERSION}] is set.
104
##
105
## Everything in this file will be executed in a bash environment.
106
##
107
## Build the package by executing
108
## './pkg-version-N.bee' or
109
## 'beesh ./pkg-version-N.bee'
110
##
111
## see http://beezinga.org/
112
##