Skip to content
Permalink
b0804708f4
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 134 lines (99 sloc) 2.94 KB
#!/usr/bin/env beesh
# BEE_VERSION FileRunner-22.07.29.17-0
# https://iweb.dl.sourceforge.net/project/filerunner/release-${PKGVERSION}/fr-${PKGVERSION}.tar.gz
# https://downloads.sourceforge.net/project/filerunner/release-22.07.29.17/fr-22.07.29.17.tar.gz
SRCURL[0]="https://beehive.molgen.mpg.de/1447d27426153f88899dc7acd553147e/fr-22.07.29.17.tar.gz"
# PATCHURL[0]=""
build_in_sourcedir
#mee_extract() {
# bee_extract ${@}
#}
#mee_configure() {
# bee_configure
#}
mee_build() {
(
cd Makefiles
tar xf tcl-inotify-1.4.1.tar.gz
cd tcl-inotify-1.4.1
./configure
make
)
echo 'set ::glob(doclib_fr) /usr/share/filerunner/doc' > config
echo 'if {[file readable /usr/share/config/filerunnerrc]} {source /usr/share/config/filerunnerrc}' >> config
}
mee_install() {
DS=${D}/usr/share/filerunner
mkdir -p -m 755 ${DS}/usr/share/filerunner
mkdir -p $D/usr/bin
ln -fs ../share/filerunner/fr $D/usr/bin/fr
for i in *.tcl config tclIndex; do
cp -v $i ${DS}/$i
chmod 644 ${DS}/$i
done
mkdir -p -m 755 ${DS}/frlib
for i in frlib/*.tcl; do
cp -v $i ${DS}/$i
chmod 644 ${DS}/$i
done
for i in fr frftp ; do
cp -v $i ${DS}/$i
chmod 755 ${DS}/$i
done
mkdir -p -m 755 ${DS}/packages
for p in packages/*; do
[ $p = 'packages/inotify' ] && continue
mkdir -p -m 755 ${DS}/$p
shopt -s nullglob
for f in $p/{*.tcl,.*.tcl,*.so,[.]tkconrc,[t]clIndex}; do
cp -v $f ${DS}/$p/
chmod -v 644 $f
done
for f in ${DS}/$p/*.so; do
chmod -v 755 $f
done
shopt -u nullglob
done
for p in packagesStd/*; do
mkdir -p -m 755 ${DS}/$p
shopt -s nullglob
for f in $p/{*.tcl,.*.tcl,*.so,[.]tkconrc,[t]clIndex}; do
cp -v $f ${DS}/$p/
chmod -v 644 $f
done
for f in ${DS}/$p/*.so; do
chmod -v 755 $f
done
shopt -u nullglob
done
mkdir -p -m 755 ${DS}/packages/inotify/x86_64
cp -v Makefiles/tcl-inotify-1.4.1/{libinotify1.4.1.so,pkgIndex.tcl} ${DS}/packages/inotify/
chmod -v 644 ${DS}/packages/inotify/*.tcl
chmod -v 755 ${DS}/packages/inotify/*.so
mkdir -p -m 755 ${D}/usr/share/applications
for i in filerunner.desktop; do
cp -v Makefiles/$i ${D}/usr/share/applications/$i
chmod 644 ${D}/usr/share/applications/$i
done
for i in icons/filerunner*.png; do
subdir=${i#icons/filerunner-}
subdir=${subdir%.png}
mkdir -p -m 755 ${D}/usr/share/icons/hicolor/${subdir}/apps
cp -v $i ${D}/usr/share/icons/hicolor/${subdir}/apps/filerunner.png
chmod 444 ${D}/usr/share/icons/hicolor/${subdir}/apps/filerunner.png
done
for i in filerunner.desktop; do
cp -v Makefiles/$i ${D}/usr/share/applications/$i
chmod 644 ${D}/usr/share/applications/$i
done
mkdir -p -m 755 ${DS}/bitmaps
for i in bitmaps/*.bit; do
cp -v $i ${DS}/$i
chmod 444 ${DS}/$i
done
mkdir -p -m 755 ${DS}/doc
for i in doc/*; do
cp -v $i ${DS}/$i
chmod 444 ${DS}/$i
done
}