You are not logged in.

#1 2009-12-21 08:00:30

sacarde
Member
Registered: 2006-07-14
Posts: 389

update moonlight 2.0

hi,
   I try to update moonlight package (on my arch64)

I use this PKGBUILD:

# Maintainer: Timm Preetz <timm@preetz.us> 
# Contributor: Daniel Isenmann <daniel @ archlinux.org> 
pkgname=moonlight 
pkgver=2.0 
pkgrel=1 
pkgdesc="An open source implementation of Microsoft's Silverlight" 
arch=('i686' 'x86_64') 
license=('LGPL') 
depends=('gtk2' 'ffmpeg') 
makedepends=('pkgconfig' 'nspr' 'libxtst' 'imagemagick' 'alsa-lib' 'xulrunner') 
url="http://www.mono-project.com/Moonlight" 
source=("http://ftp.novell.com/pub/mono/sources/moon/2.0/moonlight-${pkgver}.tar.bz2") 
options=('!libtool') 
md5sums=('a3d35a2f92168baa11eabe2be26f5726') 
 
build() { 
    export MONO_SHARED_DIR=${startdir}/src/weird 
    mkdir -p "${MONO_SHARED_DIR}" 
    cd ${startdir}/src/moonlight-${pkgver}/ 
 
    ./configure --with-ffmpeg=yes --with-cairo=system --with-alsa=yes \ 
        --with-debug=no --prefix=/usr --with-ff3=yes 
    make || return 1 
    make DESTDIR=${startdir}/pkg/ install || return 1 
     
    mkdir -p ${pkgdir}/usr/lib/mozilla/plugins/ 
    install -m755 ${startdir}/pkg/usr/lib/moon/plugin/*.so ${startdir}/pkg/usr/lib/mozilla/plugins || return 1 
}

but I have error:

...
...
checking for ALSA... yes
checking for GLIB... yes
checking for GTK... yes
checking for XRANDR... yes
checking for FREETYPE2... yes
checking for FONTCONFIG... yes
checking for CAIRO... yes
configure: error: mcs_path doesn't exist
make: *** No targets specified and no makefile found.  Stop.
==> ERRORE: Compilazione non riuscita.


can you help me?

thankyou

Offline

#2 2009-12-21 09:35:28

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: update moonlight 2.0

--with-mcs-path or something like that(./configure --help) is the path to mono sources. to compile moonlight you need mono and mono-basic, source and compiled.

http://mono-project.com/Moonlight#Developing_Moonlight
http://bbs.archlinux.org/viewtopic.php? … 07#p674607

Last edited by wonder (2009-12-21 09:39:43)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2009-12-21 10:34:29

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: update moonlight 2.0

I insert: --with-mcspath=/usr/bin

and install gtk-sharp-2

now it need: wnck-sharp

Last edited by sacarde (2009-12-21 10:34:46)

Offline

#4 2009-12-22 10:56:44

ise
Developer
From: Karlsruhe / Germany
Registered: 2005-10-06
Posts: 404
Website

Re: update moonlight 2.0

sacarde wrote:

I insert: --with-mcspath=/usr/bin

and install gtk-sharp-2

now it need: wnck-sharp

wnck-sharp is provided from gnome-desktop-sharp.

I have a running PKGBUILD which build and install moonlight.

# Maintainer: Timm Preetz <timm@preetz.us>
# Contributor: Daniel Isenmann <daniel @ archlinux.org>
pkgname=moonlight
pkgver=2.0
pkgrel=1
pkgdesc="An open source implementation of Microsoft's Silverlight"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('gtk2' 'ffmpeg' 'mono' 'imagemagick' 'libxtst')
makedepends=('pkgconfig' 'nspr' 'alsa-lib' 'xulrunner')
url="http://www.mono-project.com/Moonlight"
source=("http://ftp.novell.com/pub/mono/sources/moon/2.0/moonlight-${pkgver}.tar.bz2")
options=('!libtool')
md5sums=('a3d35a2f92168baa11eabe2be26f5726')

build() {
    export MONO_SHARED_DIR=${startdir}/src/weird
    mkdir -p "${MONO_SHARED_DIR}"
    cd ${startdir}/src/moonlight-${pkgver}/

    ./configure --with-ffmpeg=yes --with-cairo=system --with-alsa=yes \
        --with-debug=no --prefix=/usr --with-ff3=yes --with-mcspath=${srcdir}/mono-2.6.1/mcs \
                --with-mono-basic-path=${srcdir}/mono-basic-2.6 
    make || return 1
    make DESTDIR=${startdir}/pkg/ install || return 1
    
    mkdir -p ${pkgdir}/usr/lib/mozilla/plugins/
    install -m755 ${startdir}/pkg/usr/lib/moonlight/plugin/*.so ${startdir}/pkg/usr/lib/mozilla/plugins || return 1
}

But you must have the sources and compilation of mono and mono-basic in the src directory of moonlight to compile it. the src directory of moonlight must look like this:

$ ls -1 src/
mono-2.6.1
mono-basic-2.6
moonlight-2.0

EDIT: But as requested from another thread, I will try to add moonlight to our [extra]-repository and maintain it with the rest of our mono stack.

Last edited by ise (2009-12-22 10:59:34)

Offline

#5 2010-01-01 10:13:50

adax
Member
Registered: 2006-10-28
Posts: 31

Re: update moonlight 2.0

this is good news. I am looking forward to being able to build some moonlight apps in the near future.
Thanks ise, and happy new year to you and all archers
smile

Offline

#6 2010-01-01 10:23:15

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: update moonlight 2.0

we are waiting for...

Offline

#7 2010-02-09 20:17:13

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: update moonlight 2.0

are there some problems?

Offline

#8 2010-02-13 16:21:12

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: update moonlight 2.0

I would like install moonlight on chrome browser

Offline

#9 2010-02-16 17:24:48

Infin1ty
Member
From: Israel
Registered: 2009-10-09
Posts: 42

Re: update moonlight 2.0

you should get the svn of mcs if you want to compile moonlight, read the README in the moonlight-2.0 tarball
svn co -r 148086 http://anonsvn.mono-project.com/source/ … no-2-6/mcs
you should have
mcs
mono
moonlight
in the same dir

Last edited by Infin1ty (2010-02-16 17:25:03)

Offline

#10 2010-02-16 19:02:55

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: update moonlight 2.0

I hope that ise will try to add moonlight to our [extra]-repository and maintain it with the rest of our mono stack.

Offline

#11 2010-02-17 19:58:18

Infin1ty
Member
From: Israel
Registered: 2009-10-09
Posts: 42

Re: update moonlight 2.0

There's a new version of mono available as for today..
i'm trying to build it and build the plugin as well.

Offline

#12 2010-02-17 22:17:32

Infin1ty
Member
From: Israel
Registered: 2009-10-09
Posts: 42

Re: update moonlight 2.0

ise wrote:

But you must have the sources and compilation of mono and mono-basic in the src directory of moonlight to compile it. the src directory of moonlight must look like this:

$ ls -1 src/
mono-2.6.1
mono-basic-2.6
moonlight-2.0

EDIT: But as requested from another thread, I will try to add moonlight to our [extra]-repository and maintain it with the rest of our mono stack.

I changed your PKGBUILD a little bit and it seems to work :)
there's a new version of moonlight to support firefox 3.6, the current version you post in here support only firefox 3.0! and won't compile for firefox 3.6 at all.

first we need to get the latest mono pack and upgrade the current one.
i edited the PKGBUILD in the abs dir.

# $Id: PKGBUILD 61622 2009-12-20 15:37:14Z daniel $
# Maintainer: Daniel Isenmann <daniel@archlinux.org>
# Contributor: Brice Carpentier <brice@dlfp.org>

pkgname=mono
pkgver=2.6.3
pkgrel=1
pkgdesc="Free implementation of the .NET platform including runtime and compiler"
arch=(i686 x86_64)
license=('GPL' 'LGPL2' 'MPL' 'custom:MITX11')
url="http://www.mono-project.com/"
depends=('zlib' 'libgdiplus>=2.4.2' 'sh')
makedepends=('pkgconfig')
options=('!libtool' '!makeflags')
provides=('monodoc')
conflicts=('monodoc')
source=(http://ftp.novell.com/pub/mono/sources/moon/2.99.0.3/${pkgname}-${pkgver}.tar.bz2
        mono.rc.d)
md5sums=('72142fdb1c042dc72a02e996d0d7648a'
         '8315e46c6a6e9625502521fc0ad1a322')

build() {
  mkdir -p ${startdir}/pkg/usr/share/licenses/$pkgname
  # build mono
  cd ${startdir}/src/${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc \
              --with-libgdiplus=installed \
              --with-tls=__thread \
              --with-moonlight=yes
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1

  # install daemons and pathes
  mkdir -p ${startdir}/pkg/etc/rc.d
  install -m755 ${startdir}/src/mono.rc.d $startdir/pkg/etc/rc.d/mono

  #install license
  install -m644 mcs/MIT.X11 ${startdir}/pkg/usr/share/licenses/$pkgname/
}
pkgname=moonlight-svn
pkgver=151932
pkgrel=1
pkgdesc="An open source implementation of Microsoft's Silverlight"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('gtk2' 'ffmpeg' 'mono' 'imagemagick' 'libxtst')
makedepends=('pkgconfig' 'nspr' 'alsa-lib' 'xulrunner' 'subversion')
url="http://www.mono-project.com/Moonlight"
options=('!libtool')

_svntrunk=http://anonsvn.mono-project.com/source/branches/moon-2-99-0-3/moon
_svnmod=moon

build() {
 cd "$srcdir"
 if [ -d $_svnmod/.svn ]; then
   (cd $_svnmod && svn up -r $pkgver)
 else
   svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
 fi
 msg "SVN checkout done or server timeout"
 msg "Starting make..."
 rm -rf "$srcdir/$_svnmod-build"
 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
 cd "$srcdir/$_svnmod-build"
 ./autogen.sh --prefix=/usr \
        --with-ffmpeg=yes \
        --with-cairo=system \
        --with-alsa=yes \
        --with-debug=no \
        --with-ff36=yes \
        --with-mcspath=${srcdir}/mono-2.6.3/mcs \
        --with-mono-basic-path=${srcdir}/mono-basic-2.6.2
 make || return 1
 make DESTDIR=${pkgdir} install || return 1
 mkdir -p ${pkgdir}/usr/lib/mozilla/plugins/
 install -m755 ${pkgdir}/usr/lib/moonlight/plugin/*.so ${pkgdir}/usr/lib/mozilla/plugins || return 1
}

}

anyone using this, should first create a src dir and put mono-basic and mono in there, and compile them before running makepkg as usual.
ftp://ftp.novell.com/pub/mono/sources/m … .2.tar.bz2
ftp://ftp.novell.com/pub/mono/sources/m … .3.tar.bz2
one could also change the PKGBUILD to point to the already compiled dir in the mono PKGBUILD i posted too.

it works :)
this should work just fine :)

Last edit :)

This should compile the mono and mono-basic, then compile moonlight, use this only after you have installed mono 2.6.3-1 package (i posted a PKGBUILD for it)

pkgname=moonlight-svn
pkgver=151932
pkgrel=1
pkgdesc="An open source implementation of Microsoft's Silverlight"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('gtk2' 'ffmpeg' 'mono=>2.6.3-1' 'imagemagick' 'libxtst')
makedepends=('pkgconfig' 'nspr' 'alsa-lib' 'xulrunner' 'subversion')
url="http://www.mono-project.com/Moonlight"
options=('!libtool')
source=(ftp://ftp.novell.com/pub/mono/sources/moon/2.99.0.3/mono-basic-2.6.2.tar.bz2
        ftp://ftp.novell.com/pub/mono/sources/moon/2.99.0.3/mono-2.6.3.tar.bz2)
md5sums=('63d01c731369c94e9a7e65bcc47479ef'
         '72142fdb1c042dc72a02e996d0d7648a')

_svntrunk=http://anonsvn.mono-project.com/source/branches/moon-2-99-0-3/moon
_svnmod=moon

build() {
 cd "$srcdir"
 if [ -d $_svnmod/.svn ]; then
   (cd $_svnmod && svn up -r $pkgver)
 else
   svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
 fi
 msg "SVN checkout done or server timeout"
 msg "Starting make..."
 rm -rf "$srcdir/$_svnmod-build"
 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"

 cd "$srcdir/mono-2.6.3"
 ./configure --prefix=/usr \
        --sysconfdir=/etc \
        --with-libgdiplus=installed \
        --with-tls=__thread \
        --with-moonlight=yes
 make || return 1

 cd "$srcdir/mono-basic-2.6.2"
 ./configure --prefix=/usr
 make || return 1

 cd "$srcdir/$_svnmod-build"
 ./autogen.sh --prefix=/usr \
        --with-ffmpeg=yes \
        --with-cairo=system \
        --with-alsa=yes \
        --with-debug=no \
        --with-ff36=yes \
        --with-mcspath=${srcdir}/mono-2.6.3/mcs \
        --with-mono-basic-path=${srcdir}/mono-basic-2.6.2
 make || return 1
 make DESTDIR=${pkgdir} install || return 1
 mkdir -p ${pkgdir}/usr/lib/mozilla/plugins/
 install -m755 ${pkgdir}/usr/lib/moonlight/plugin/*.so ${pkgdir}/usr/lib/mozilla/plugins || return 1
}

Last edited by Infin1ty (2010-02-17 23:31:24)

Offline

#13 2010-02-20 19:37:25

sacarde
Member
Registered: 2006-07-14
Posts: 389

Re: update moonlight 2.0

can you put package-binary on a ftp server ?

Offline

#14 2010-02-20 22:25:32

Infin1ty
Member
From: Israel
Registered: 2009-10-09
Posts: 42

Re: update moonlight 2.0

I don't have an ftp server i can put it on.
but i don't see a reason why if you follow all the PKGBUILDs i've put and the information you won't be able to bulid it yourself?
it's should be easy now.

Offline

#15 2010-02-24 17:49:27

adax
Member
Registered: 2006-10-28
Posts: 31

Re: update moonlight 2.0

is there a chance that we are going to get moonlight as a package or should i just go ahead and uninstall the mono package and use the pkgbuild above?
would have been better to just be able to install and start working using monodevelop.

Offline

#16 2010-02-24 20:51:40

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: update moonlight 2.0

I wanted to get moonlight quickly, I found it was very easy to install online in firefox :
http://www.go-mono.com/moonlight/prerelease.aspx


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#17 2010-02-24 22:55:59

adax
Member
Registered: 2006-10-28
Posts: 31

Re: update moonlight 2.0

i was hoping for a nicely packaged version of the SDK rather than just the browser plugin.

Offline

#18 2010-02-26 12:25:38

Infin1ty
Member
From: Israel
Registered: 2009-10-09
Posts: 42

Re: update moonlight 2.0

adax wrote:

i was hoping for a nicely packaged version of the SDK rather than just the browser plugin.

Well, the main idea of this thread was to support the installation of the plugins.
I could help you with building a package for the SDK if you could help me by giving me links to what exactly you want.
Since i'm by no mean a developer i do not know which packages relates to the SDK, etc.. (monodevelop?)

Thanks.

Offline

Board footer

Powered by FluxBB