Hi!

I contributed a new package for Double Commander. I send the FB, please somebody check it.


Comment:

This FB is not so frugal and beauty, but I worked with this hardly, according to my best knowledge.

1.) I work with 'svn branch', it is the stable source, the snapshot is the 'svn trunk'. So I see the 'svn branch' just give bugfixes and translates (http://doublecmd.svn.sourceforge.net/viewvc/doublecmd/branches/?view=log). The developers make binary packages on sourceforge (deb, rpm,tgz and portable package tar.bz2). On the sourceforge the last binary package's date is 2010-02-22, on the 'svn barnch' the last fix's date is 2010-04-20. I think the 'svn barnch' source building is better alternative as the portable binary's 'Fcp doublecmd usr/share/' resolution.

2.) The pkgver first part is the last stable version, the second part is the last revision number.

3.) I make a simply patch for _make.sh. I can't find other resolution.

4.) up2date: ah, I can't find simplier resolution, this is my best aknowledge.

5.) build comments: I build lazres int the source directory because for the _make.sh need it, copy files in pkg directory, because the _make.sh build the package in the source directory. Plugins: I can't find simplier resolution, it is an kikadf bug :)

5.) I didn't want to over explain. I try to answer the questions...


# Compiling Time: 0.02 SBU
# Maintainer: who
# Contributor: kikadf <[email protected]>

pkgname=doublecmd-svn
_dcver=0.4.5
_revnum=2719
_sep=_
pkgver=$_dcver$_sep$_revnum
pkgrel=1
pkgdesc="Double Commander is a cross platform open source file manager with two 
panels side by side. It is inspired by Total Commander and features some new 
ideas."
url="http://doublecmd.sourceforge.net";
_F_desktop_name="Double Commander"
_F_desktop_icon="doublecmd.png"
_F_desktop_exec="doublecmd"
_F_desktop_categories="Utility;GTK;"
makedepends=('lazarus>=0.9.28' 'fpc>=2.2.4' 'subversion' 'hal')
groups=('xapps-extra')
archs=('i686' 'x86_64')
source=(_make.sh4fw.patch)
_svnsource="http://doublecmd.svn.sourceforge.net/svnroot/doublecmd/branches/$_dcver";
up2date="lynx -dump 
http://doublecmd.svn.sourceforge.net/viewvc/doublecmd/branches | grep / | grep 
-v http | cut -d ' ' -f 4,6 | sed 's/\[[0-9]*\]//g;s/\/ /_/g' | tail -1"
sha1sums=('627b3d695dc679b2079dff637085528f40cc818b')

build()
{
        #Download source with svn
        Fmessage "Download source with svn"
        Fmkdir $Fsrcdir/$pkgname-$pkgver
        Fexec svn co $_svnsource $Fsrcdir/$pkgname-$pkgver
        
        #Use patch
        Fpatchall
                
        #Build lazres
        mkdir lazres
        cd $Fsrcdir/$pkgname-$pkgver/lazres
        Fmessage "Build lazres in $Fsrcdir/$pkgname-$pkgver/lazres"
        cp /usr/share/lazarus/tools/lazres.{lpi,pp} ./
        lazbuild --pcp=./ ./lazres.lpi
        cd ..
                
        #Build doublecmd
        Fmessage "Build Double Commander with _make.sh"
        ./_make.sh all
        
        #Install doublecmd
        Fmkdir usr/share/{doublecmd,pixmaps}
        dcprefix=usr/share/doublecmd
        cp -a doc/ language/ pixmaps/ default.bar doublecmd.ext.example 
doublecmd doublecmd.ini editor.col pixmaps.txt twilight.col $Fdestdir/$dcprefix
        cp doublecmd.png $Fdestdir/usr/share/pixmaps
        Fln /$dcprefix/doublecmd usr/bin/doublecmd
        for plugin in plugins/dsx/*/lib/*.dsx plugins/wcx/*/lib/*.wcx 
plugins/wdx/*wdx/lib/*.wdx plugins/wlx/Wlx*/lib/*.wlx; do
                plugindir=$(echo $plugin | sed 's/lib/\\/' | cut -d '\' -f 1)
                Fmkdir $dcprefix/$plugindir
                cp $plugin $Fdestdir/$dcprefix/$plugindir
        done
        Fdesktop2
        Frm var
}
Index: _make.sh
===================================================================
--- _make.sh    (revision 2720)
+++ _make.sh    (working copy)
@@ -17,7 +17,8 @@
 # default - compiling DC with *.lrs files generation (using by default)
 
 # path to lazarus
-export lazpath=/home/alexx/bin/lazarus
+#export lazpath=/home/alexx/bin/lazarus
+export lazpath=/usr/share/lazarus
 
 # Set up widgetset: gtk or gtk2 or qt
 if [ $lcl ]
@@ -41,7 +42,7 @@
   for LFM in `ls ./src/*.lfm`
   do
     LRS=`echo $LFM | sed -e 's/\.lfm$/\.lrs/'`
-    $lazpath/tools/lazres $LRS $LFM
+    lazres/lazres $LRS $LFM
   done
   build_doublecmd
 }

Attachment: _make.sh
Description: Bourne shell script

_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to