-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #646 from mariux64/update-fr
Update fr (FileRunner) fro testing
- Loading branch information
Showing
2 changed files
with
99 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |