On Mon, 13 Feb 2012 21:10:42 -0600, Joshua Ismael Haase Hernandez 
<[email protected]> wrote:
> # Maintainer: Jorge Navarro <[email protected]>
> # Contributor: Joshua (xihh) <[email protected]>
> pkgname=kervala-luabind-hg
> pkgver=1.0
> pkgrel=1
> pkgdesc="a LUA dependencie for the game Ryzom"
> arch=('i686' 'x86_64')
> url="http://hg.kervala.net/";
> license=('custom:BSD')
> depends=('lua')
> makedepends=('mercurial' 'cmake')
> provides=('kervala-luabind')
> md5sums=() #generate with 'makepkg -g'
> 
> _hgroot="http://hg.kervala.net";
> _hgrepo="packaging"
> _hgpkg="luabind"
> 
> build() {
>   msg "Connecting to $_hgroot"
>   if [ -d $_hgrepo ]; then
>     cd $_hgrepo
>     hg pull -u || return 1
>     msg2 "Finished updating the local repository!"
>   else
>     hg clone ${_hgroot} "${srcdir}/${_hgrepo}" || return 1
>     msg2 "Initiall pull complete!"
>   fi
> 
>   if [ -d "${srcdir}/${_hgrepo}/${_hgpkg}/${_hgpkg}-build" ]; then
>     cd "${srcdir}/${_hgrepo}/${_hgpkg}/${_hgpkg}-build"
>     make clean || return 1
>     hg pull -u "${srcdir}/${_hgrepo}" || return 1
>   else
>     hg clone "${srcdir}/${_hgrepo}" "${srcdir}/{_hgrepo}" || return 1
>     cd "${srcdir}/${_hgrepo}/${_hgpkg}"
>   fi
> 
>   mkdir ${_hgpkg}-build
>   cd ${_hgpkg}-build
>   cmake ..
>   make
> }

remember we have to host sources, so this would go to a "SRCBUILD". use
ghostscript-libre's as a model, we have to document this.

Attachment: pgpOfB1nKGLoW.pgp
Description: PGP signature

_______________________________________________
Dev mailing list
[email protected]
http://lists.parabolagnulinux.org/mailman/listinfo/dev

Reply via email to