[Dev] WAAAAA! my first PKGBUILD doesn't work :<
Nicolás Reynolds
fauno at kiwwwi.com.ar
Tue Feb 14 13:18:53 GMT 2012
On Mon, 13 Feb 2012 21:10:42 -0600, Joshua Ismael Haase Hernandez <hahj87 at gmail.com> wrote:
> # Maintainer: Jorge Navarro <jorgean at lavabit.com>
> # Contributor: Joshua (xihh) <hahj87 at gmail.com>
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20120214/c90e1f5a/attachment.sig>
More information about the Dev
mailing list