Skip to content

Commit

Permalink
Merge pull request #646 from mariux64/update-fr
Browse files Browse the repository at this point in the history
Update fr (FileRunner) fro testing
  • Loading branch information
wwwutz authored Feb 27, 2018
2 parents e14e865 + 5b1031e commit 5467be3
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 59 deletions.
59 changes: 0 additions & 59 deletions FileRunner-2.5.1p3-0.bee

This file was deleted.

99 changes: 99 additions & 0 deletions FileRunner.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
#!/usr/bin/env beesh

# BEE_VERSION FileRunner-17.04.01.19-0

SRCURL[0]="https://sourceforge.net/projects/filerunner/files/release-${PKGVERSION}/fr-${PKGVERSION}.tar.gz/download fr-${PKGVERSION}.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 expect ftp log tkcon; do
mkdir -p -m 755 ${DS}/packages/$p
cp -v packages/$p/*.tcl ${DS}/packages/$p/
chmod 644 ${DS}/packages/$p/*.tcl
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 644 ${DS}/packages/inotify/*.tcl
chmod 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
}

0 comments on commit 5467be3

Please sign in to comment.