git as a source in Pkgfile

Emmanuel Benisty benisty.e at gmail.com
Fri Nov 9 19:17:08 UTC 2012


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
}



More information about the CRUX mailing list