-
Notifications
You must be signed in to change notification settings - Fork 0
Permalink
bee-files/FileRunner.be0
Newer
100755
112 lines (86 sloc)
2.55 KB
3
# BEE_VERSION FileRunner-19.12.21.13-2
4
5
# https://iweb.dl.sourceforge.net/project/filerunner/release-${PKGVERSION}/fr-${PKGVERSION}.tar.gz
6
SRCURL[0]="https://beehive.molgen.mpg.de/b5c85742dc90484dcdf8bdd33fa8220c/fr-19.12.21.13.tar.gz"
10
build_in_sourcedir
11
12
#mee_extract() {
13
# bee_extract ${@}
14
#}
15
16
#mee_configure() {
17
# bee_configure
20
mee_build() {
21
(
22
cd Makefiles
23
tar xf tcl-inotify-1.4.1.tar.gz
24
cd tcl-inotify-1.4.1
25
./configure
26
make
27
)
28
29
echo 'set ::glob(doclib_fr) /usr/share/filerunner/doc' > config
30
echo 'if {[file readable /usr/share/config/filerunnerrc]} {source /usr/share/config/filerunnerrc}' >> config
31
}
35
DS=${D}/usr/share/filerunner
37
mkdir -p -m 755 ${DS}/usr/share/filerunner
40
ln -fs ../share/filerunner/fr $D/usr/bin/fr
41
42
for i in *.tcl config tclIndex; do
43
cp -v $i ${DS}/$i
44
chmod 644 ${DS}/$i
45
done
46
47
mkdir -p -m 755 ${DS}/frlib
48
for i in frlib/*.tcl; do
49
cp -v $i ${DS}/$i
50
chmod 644 ${DS}/$i
51
done
52
53
for i in fr frftp ; do
54
cp -v $i ${DS}/$i
55
chmod 755 ${DS}/$i
58
mkdir -p -m 755 ${DS}/packages
59
for p in packages/*; do
60
[ $p = 'packages/inotify' ] && continue
61
mkdir -p -m 755 ${DS}/$p
62
63
shopt -s nullglob
64
for f in $p/{*.tcl,.*.tcl,*.so,[.]tkconrc,[t]clIndex}; do
65
cp -v $f ${DS}/$p/
66
chmod -v 644 $f
67
done
68
69
for f in ${DS}/$p/*.so; do
70
chmod -v 755 $f
71
done
72
shopt -u nullglob
73
76
mkdir -p -m 755 ${DS}/packages/inotify/x86_64
77
cp -v Makefiles/tcl-inotify-1.4.1/{libinotify1.4.1.so,pkgIndex.tcl} ${DS}/packages/inotify/
78
chmod -v 644 ${DS}/packages/inotify/*.tcl
79
chmod -v 755 ${DS}/packages/inotify/*.so
80
81
mkdir -p -m 755 ${D}/usr/share/applications
82
for i in filerunner.desktop; do
83
cp -v Makefiles/$i ${D}/usr/share/applications/$i
84
chmod 644 ${D}/usr/share/applications/$i
85
done
86
87
for i in icons/filerunner*.png; do
88
subdir=${i#icons/filerunner-}
89
subdir=${subdir%.png}
90
mkdir -p -m 755 ${D}/usr/share/icons/hicolor/${subdir}/apps
91
cp -v $i ${D}/usr/share/icons/hicolor/${subdir}/apps/filerunner.png
92
chmod 444 ${D}/usr/share/icons/hicolor/${subdir}/apps/filerunner.png
93
done
94
95
for i in filerunner.desktop; do
96
cp -v Makefiles/$i ${D}/usr/share/applications/$i
97
chmod 644 ${D}/usr/share/applications/$i
98
done
99
100
mkdir -p -m 755 ${DS}/bitmaps
101
for i in bitmaps/*.bit; do
102
cp -v $i ${DS}/$i
103
chmod 444 ${DS}/$i
104
done
105
106
mkdir -p -m 755 ${DS}/doc
107
for i in doc/*; do
108
cp -v $i ${DS}/$i
109
chmod 444 ${DS}/$i
110
done