git as a source in Pkgfile

Danny Rawlins d.rawlins at datafast.net.au
Sun Nov 11 11:48:54 UTC 2012


On 10/11/12 06:17, Emmanuel Benisty wrote:
> On Fri, Nov 9, 2012 at 8:24 PM, Stefan Stefanov <selectany at gmail.com> wrote:
>> Hello
>>
>> Is there any special syntax about using git as a source in Pkgfile?
>> Some example Pkgfile using git would be great!
> What I use, random example. YMMV.
>
> # Description:
> # URL: http://pwmt.org/jumanji
> # Maintainer:
> # Depends on:
>
> name=zathura
> version=`date +%Y%m%d`
> release=1
> source=()
>
> build(){
>     if cd $PKGMK_ROOT/$name ; then
>       git pull
>     else
>       git clone -b develop git://pwmt.org/$name.git $PKGMK_ROOT/$name
>     fi
>
>     cp -r $PKGMK_ROOT/$name $SRC/ && cd $SRC/$name
>
>     make WITH_SQLITE=0 DESTDIR=$PKG install
>
>     rm -r $PKG/usr/share
> }
> _______________________________________________
> CRUX mailing list
> CRUX at lists.crux.nu
> http://lists.crux.nu/mailman/listinfo/crux
>
>
As an example
http://romster.dyndns.org/linux/ports/crux/emulators//cdemu-daemon/Pkgfile

Regards,
Danny



More information about the CRUX mailing list